Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
838 views
by Master (1.2k points)
I am working on an application where I have a combination of input, select and p tags.

Now all of them are not editable.

How do I verify it using Selenium WebDriver?

1 Answer

0 like 0 dislike
by Master (1.2k points)

This is the standard function that i use,

public boolean isTheElemeentEditable(String lebel){
    WebElementFacade element = ""; //enter a way to identify element.
    try{
        element.sendKeys("test");
        if(element.getValue().equals("test"))
            return true;
        return false;
    }catch (WebDriverException wde){
        return false;
    }
}

it helps with all kind of elements.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...