Answers for "java selenium new window"

1

java selenium new window

// This will open the new tab
driver.switchTo().newWindow(WindowType.TAB);

// This will open the new window
driver.switchTo().newWindow(WindowType.WINDOW);
Posted by: Guest on March-08-2022
1

open new window in selenium

driver.execute_script("window.open('https://twitter.com')")
Posted by: Guest on April-23-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language