Is there any way that I could check if my input is in the Select Item list? let’s say if I have a 53g but 53g is not in the list, I will throw an error.
In this case, I have tried on Element Exist, but it won’t select on the single element let’s say 13g or 75g.
And then I tried get OCR text, but it says object reference not set to an instance.
Please note, the element in the drop-down is random, for the current item it’s 13g and 75g, but for the next item, it will be something else.
I gave a try. Not sure if it is correct approach. This will work if you can select individual item from dropdown list while Data Scrapping… I tested it on below ACEM page only…
When the web page is displayed hit F2 to get 5 seconds time to select the data for scrapping. In that time click arrow on dropdown list to populate the list.
Select first item in the list for scrapping
When asked for second item select the Second Item in the list.
Finish the Data Scrapping process (if list has more than 100 items set the value to 0 in Data Scrapping wizard)
Now you can use the Data Table created Using data scrapping to verify if the required item is in the Dropdown or not.
But I want to check if the item exists in the drop-down before it reaches select elements, this way I could skip the select activity and throw an error.
Yes, the Element Exists on the option tag will give you a true/false on if the select item exists. If true, do the select item activity and if false throw an error.
I’m sorry, but could you please be more specific on what should I type in the selector? It does not specify the size of the product in the selector. The wildcard I used is to replace a series of numbers which has nothing to do with the size.