How do I find an element with a unique attribute #1427
-
As shown in figure: This property is unique in the element, and it's dynamic (with two states), and I can't locate it with xpath or CSS selecter,How do you locate this element by attribute name |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I can't predict whether it's in a top or bottom state,So I want to locate it by attribute name |
Beta Was this translation helpful? Give feedback.
-
Selector by attribute: |
Beta Was this translation helpful? Give feedback.
-
Maybe it's my syntax, I tried all these ways, but I couldn't locate this element
|
Beta Was this translation helpful? Give feedback.
Selector by attribute:
'div[x-placement]'
Selector by attribute and value:
'div[x-placement="top-start"]'
Other selector by attribute and value:
'div[x-placement="bottom-start"]'