Quality Testing

Quality is delighting customers

This blog article explains the latest Selenium Commands and methods which every automation tester must know. As an automation testing company, we keenly watch the enhancements in Selenium WebDriver to improve our test automation scripting for a robust solution. Let's see the new Selenium commands one by one.


Read More

Views: 45

Reply to This

Replies to This Discussion

In software testing solutions while automating test autmation expertes uses different type of selenium commonds.In software testing solutions while automating test autmation expertes uses different type of selenium commonds.Some importent selenium commonds/methods are listed below:

1. get() Methods

- get()
- getClass()
- getCurrentUrl()
- getPageSource()
- getTitle()
- getText()
- getAttribute()
- getWindowHandle()
- getWindowHandles()
- getWindowHandles()

2. linkText()
- driver.findElement(By.linkText(“<link text>”)).click();

3. Multiple items selection in a drop dropdown

Select selectByValue = new Select(driver.findElement(By.id("<drop down id>")));
selectByValue.selectByValue("<iteam value>");
selectByValue.selectByVisibleText("<iteam text>");
selectByValue.selectByIndex(<index value>);


4. Form Submitting  
- driver.findElement(By.id("submit")).submit();

5. Managing iframes
- driver.switchTo().frame(“<frame Id>“);
- driver.switchTo().frame(<index>);
- driver.switchTo().frame(“<frame name>”);
- driver.switchTo().defaultContent();

6. close() and quit() 
- driver.close();
- driver.quit();

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service