Showing posts with label selenium practice page. Show all posts
Showing posts with label selenium practice page. Show all posts

Xpath Practice

unique id

unique name

unique value

element 1

element 2

unique combination of attributes : name=a id=a

unique combination of attributes : name=a id=b

unique combination of attributes : name=b id=a

unique combination of attributes : name=b id=b

Example of Elements with nothing unique : use index

When the child is unique

google link

Where the parent is unique

Using Elements as Attributes



Advance Xpath Example : Identify using lable only

::: Addmission
DOB

Not logged in






Xpath AXES

Xpath AXES - Inspect Me


Basic dropdown


The select dropdown

Select one option at a time:

Select your favorite fruit:

Selected fruit is :

The Multi Select Element

The multiple attributes specify that multiple options can be selected at once:

Selected car is :

Hold down the Ctrl (windows) or Command (Mac) button to select multiple options.




Visibile and Hidden Webelements


The button is disabled

The button is enabled

Difference between display:none and visiblity: hidden

visibility:hidden hides the element, but it still takes up space in the layout.

display:none removes the element from the document. It does not take up any space.

Box 1
Italy
Box 2
Lights
Box 3
Forest

Simple Checkbox and Radio buttons



Check box

Display some text when the checkbox is checked:

Radio buttons

Select your favorite browser:

Internet Explorer
Firefox
Opera
Google Chrome
Safari

  Your favorite browser is: