about 5 years ago
These are the Following methods in Selenium are used in conditional and looping operations:-
isEnabled() method is used when you want to verify weather a certain element is enabled or not before executing a command.
WebElement txtbox-username = driver.findElement(By.id("username"));
2.isDisplayed() method is used when you want to verify weather a certain element is displayed or not before
executing a command.
//do something here
}while (driver.findElement(By.id("username")).isDisplayed() );
3.isSelected() method is used when you want to verity a certain checkbox,radio button or option in a drop- down box is selected.It doesnot work on other elements:-
//"one-way" and "two-way" are radio buttons
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using