39. Execute Selenium

Steps to run Command

Please verify the browser driver location mentioned in the selenium script, it should be as per the current browser driver availability on user’s machine. 

Point out the right browser driver path, this may vary in different machine. 

System.setProperty("webdriver.chrome.driver",System.getProperty("user.home") + \\.whiz\\WebDriver\\chromedriver\\win32\\91.0.4472.101\\chromedriver.exe); 

JAVA

1.Search Execute Selenium in the test command search box.


Fig: Execute Selenium Command.

2.Tap on Value in the Test Editor to import Java file. Please note this action will raise a pop-up reading “After importing file, stored value will be lost”. Click Yes to proceed

3.Import the Java file of your requirement.

Please verify the browser driver location mentioned in the selenium script, it should be as per the current browser driver availability on user’s machine. 

Point out the right browser driver path, this may vary in different machine. 

System.setProperty("webdriver.chrome.driver",System.getProperty("user.home") + \\.whiz\\WebDriver\\chromedriver\\win32\\91.0.4472.101\\chromedriver.exe);

We can also write any java code to run selenium script in any of browser and user should have the thorough-out knowledge of java.