15. ● OS independent
● Multiple languages Python, PERL, RUBY, PHP, .NET(C#), Java
● Supports lot many browsers
● Open source and have a good community base
● Robust methods to locate elements
22. Scenario: Login to Spree e-Commerce Application
Find By ID
System.setProperty("webdriver.chrome.driver", "/Users/shivalis/Downloads/chromedriver");
String url = "http://localhost:3000";
WebDriver driver = new ChromeDriver();
driver.get(url);
// Find By Id
WebElement login_icon = driver.findElement(By.id("link-to-login"));
login_icon.click();
WebElement user_name = driver.findElement(By.id("spree_user_email"));
23. By Name and XPath
// Find By Name
WebElement pswd = driver.findElement(By.name("spree_user[password]"));
user_name.sendKeys("xt@xt.com");
pswd.sendKeys("xtxtxt");
// Find By Xpath
WebElement submit_button =
driver.findElement(By.xpath("//*[@id='new_spree_user']/p[2]/input"));
submit_button.submit();
Shiva:
What are WebServices; Importance of Web Services
Learn How do we test a WebService using different tools and programming libraries
Get familiarised with automating WebService.