You can reference any combination that renders in the DOM. So in this case the class and the type you can reference. As it’s a link that likely has multiple associations to the class I would utilize an xquery that includes the parent object and then the a link and class, or the rendered text of the link if that is unique.

In general you can’t used derived class color information, but only what is rendered in the DOM. The drilled in view of the DOM that you have is what you can utilize to locate elements, if it isn’t in there then you can’t use it as the screen reader is literally reading the DOM.

xquery is really powerful and I would recommend learning that for your element attachment and . Good xquery example page



Source link https://sqa.stackexchange.com/questions/34730/can-we-use-css--like-background-color-for-locating-an-element-when-t

LEAVE A REPLY

Please enter your comment!
Please enter your name here