AZ Calculator
CSS Selector Practice
unique id
unique class
element 1
element 2
unique name
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
class = 'apple'
class = 'apple orange'
Example of identifying elements with help of parent
Index
1
2
3
4
5
6
7
8
9
10
only-of-type
b1
b2
b3
b1
b1
b2
Difference between first child and first type
1
2
3
1
2
3
1
2
3
Xpath AXES
Not logged in
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 linkWhere the parent is unique
Using Elements as Attributes
Advance Xpath Example : Identify using lable only
Not logged in
Xpath AXES
Subscribe to:
Posts (Atom)