-> we can use isEnabled() function in Selenium webdriver for verify the Web Element enabled or not in webpage.
-> Its return the boolean value.
-> Its returns "true" if WebElement Enabled
-> Its returns "false if WebElement not enabled.
public void UserObject_Enabled(WebElement element1)
{
boolean Result;
System.out.println("Inside UserObject_Enabled");
do
{
try
{
Result=element1.isEnabled();
if(Result)
System.out.println("OBject is Enabled" );
else
System.out.println("OBject is not Enabled");
}while(!Result);
}
No comments:
Post a Comment