How to add conditions to selector attribute

uiautomation

#1

I have a selector type as

html app=‘chrome.exe’ omit:title='SEC*'
webctrl tag=‘INPUT’ name=‘company’ type=‘text’

I want to add condition as either name=‘company’ or ‘business name’… how can I do that

for ex: for this url: https://www.concord-sots.ct.gov/CONCORD/online?sn=InquiryServlet&eid=99
has selector as
html app='chrome.exe’
webctrl tag=‘INPUT’ name=‘businessName’ type=‘text’

and this url: https://www.sec.gov/edgar/searchedgar/companysearch.html
has selector as
html app='chrome.exe’
webctrl tag=‘INPUT’ name=‘company’ type=‘text’

I want to run only one selector function with adding OR condition to name attribute…


#2

Set your variable = myVariable and change your selector to:

Then create a variable called mySelector =
html app='chrome.exe’
webctrl tag=‘INPUT’ name=‘"+myVariable+"’ type=‘text’

Then in the activity use mySelector as your selector rather than the orginal value.

RD


How to tick a radio button based on another value in the same row in a data table in a web app