Questions tagged [invalidargumentexception]

No directions have been provided for utilizing this tag... as of now!

selenium.common.exceptions.InvalidArgumentException: Message: The argument provided is not valid: 'name' must be a string when transitioning between window handles using Selenium

Whenever I try to use the following code snippet: driver.execute_script("window.open('');") driver.switch_to.window(driver.window_handles[1]) driver.get(url) driver.switch_to.window(driver.window_handles[0]) An error is thrown at me. selenium.co ...