Selenium web driver is the most popular browser automation testing tool. Project is hosted at https://github.com/seleniumhq/selenium.
Key features of Selenium Webdriver are -
For example ->
If you want to automate chrome, you will need chromedriver. Chromedriver is an application file that is used to perform the operations on browser.Similarly for firefox and Internet Explorer there are different drivers.
Above code will launch firefox.
What do you think on above selenium topic. Please provide your inputs and comments. Thanks
Key features of Selenium Webdriver are -
- Open source
- Supports all major browsers - IE, Firefox, Chrome, Safari, Opera
- API is available in all popular languages like Java, Groovy, C#, PHP, Python etc.
- Selenium Webdriver is a W3C standard protocol for Browser Automation
- Supports testing for Desktop web applications, iOS and Android mobile applications
- Testing web applications on emulated mobile devices is possible using mobile emulation in chrome
For example ->
If you want to automate chrome, you will need chromedriver. Chromedriver is an application file that is used to perform the operations on browser.Similarly for firefox and Internet Explorer there are different drivers.
System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe"); WebDriver driver = new ChromeDriver();
Above code will create new web driver reference that can be used to automate the test cases on chrome browser.File profileDir = new File("C:\\Users\\Firefox\\Profiles\\default"); FirefoxProfile profile = new FirefoxProfile(profileDir); wb = new FirefoxDriver(profile);
Above code will launch firefox.
What do you think on above selenium topic. Please provide your inputs and comments. Thanks
nice to see the question & answers
ReplyDeleteThank you sagar
Thanks mate
Delete