Forum Discussion
rraghvani
Champion Level 3
2 years agoDepending on the control, it could be possible. For example, the following date picker control is identified as a table - cells can be stored into an array that represents the dates. Also the date picker may have methods you can call to set a specific date too.
Use the Object Browser to see what the control exposes.
- TestCoeUs13372 years agoOccasional Contributor
Thanks for your reply.. but if it was not for the date picker? For example if I had 5 buttons on the page and want to select third one? Can you do an equivallent of cypress .eq(2)? (starting indexing at 0...)?
- rraghvani2 years ago
Champion Level 3
I'm not familiar with Cypress, but same principles apply. In this example, buttons can be accessed via their index value.