Use of If else statement for a object clicked
Hello,
I had a main reusable keyword script , which opened a wizard and then there was a dropdown for me to select options, but now the dropdown is no more and it is a "tree" to select options.
In my script I had used if else statement where, it had conditions to navigate to certain pages based on what you select in the dropdown . But now because it is a tree I just have to click on the object and then work , my question is what kind of condition can i give for a click in if else statement.
I have attached the before and after changes. Please help me with your suggestions.
Let me know if something is not very clear.
Hi,
Can you read each dropdown elements as "MenuItem"?
If you can do that read whole values into array (if you are using for example javascript) and then create if or maybe switch based on array index.
You can enable a Text Recognition Options option too, and with that option search for value in dropdown.
here is the link for documentation:
Or more simpler solution. Click on dropdown value -> and after that check the wText or maybe Text property of that specific dropdown
Let me know if that helped you.