-
| Hi ! i also tried with cdp.reload and script_to_evaluate_on_load but same result ! Can you help me ? | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
| Would be similar to how a button is added, as in #1429 (comment): from seleniumbase import SB
with SB() as sb:
    script_to_add_button = """function injectButton() {
       var new_button=document.createElement('button');
       document.getElementsByTagName('body')[0].appendChild(new_button);
       new_button.style="width: 200px; height: 120px";
    }
    injectButton();"""
    sb.execute_script(script_to_add_button)
    sb.sleep(3) | 
Beta Was this translation helpful? Give feedback.
-
| And can i do the same thing with parameter script_to_evaluate_on_load for the reload function ? | 
Beta Was this translation helpful? Give feedback.
Would be similar to how a button is added, as in #1429 (comment):