A custom built CSS selector for more advanced users, can be built using the "contains" selector.


The "contains" selector is useful in cases where we are looking for an element that "contains" some text (case sensitive). It is a good approach when we want to locate web elements that do not have a fixed index or id inside the web page.


For example, in the attached Process, the following CSS selector is being used in order to click on the article "Unassign/de-register WinAutomation license" of our Support Portal home page:


a:contains("Unassign")


Similar to the above is the "WA_SimpleTextEqualsIgnoreCase" CSS selector, with the difference that it is searching for the whole text and not part of it.


For example, the above would be


a:WA_SimpleTextEqualsIgnoreCase("Unassign/de-register WinAutomation license")