How can I get <a> element that no having [title property] and no having [css property] with CSS Selector Editor
I want get only (O) <a> element
<a href="abcd"> (O)
<a href="abcd1">(O)
<a href="abcd2" css="acde">(X)
<a href="abcd3" title="cedd">(X)
how can i modify it?
Please help me!
div[id="myid"] > ul> li > div > ul > li > a
==> ???
There is no CSS selector that selects for text. It has been a proposal for a while but it has yet to materialize.
You can use:
- xpath
- The jQuery
:contains
filter
WebUI.getText
https://api.jquery.com/contains-selector/
https://docs.katalon.com/katalon-studio/docs/webui-get-text.html
There is no such attribute.
I don’t know of any way to use WebUI API to ask for elements without a specific attribute. You could write some JavaScript/jQuery to do it.
This would be really easy to accomplish with xpath:
//a[not(@css) and not(@title)]
Thank you for your help
I got it using Xpath as you explained.