I am trying to change the browser tab while the current tab I am in is loading some javascript. When I try to do that, my program stops in the driver.switch_to.window(x)
line and stays there until the javascript is loaded. I would like to know If there is any way not to block the execution.
It's like the driver it's busy, and will not do the action until it finishes.