Created
September 19, 2016 19:17
-
-
Save 4M01/8c2598ea85a1492233aae0d346ad263f to your computer and use it in GitHub Desktop.
Open a URL in a new tab in a browser using Selenium WebDriver using javascript for Mac & windows . Please check http://qaperspective.blogspot.in/2016/09/open-new-tab-using-Selenium-WebDriver.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((JavascriptExecutor) driver).executeScript("window.open('http://accounts.google.com/','_blank');"); | |
//here URL is - http://accounts.google.com/ send as parameter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment