Selenium API provides 2 important methods to read data from
web elements.
- value_of_css_property – gets the value of css property of the element
- get_attribute – gets the value of given attribute.
We can also get the inner text of element using text property.
We can also check if
We can also check if
- Element is displayed using is_displayed mehtod
- Element is selected using is_selected method
- Element is enabled using is_enabled method
x = e.get_attribute("onfocus");
x = e.is_selected();
x = e.is_displayed();
x = e.isEnabled();
What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com
No comments:
Post a Comment