clickrightbytext
Last updated
Last updated
This action will click on a clickable element based on a text elsewhere in the screen. This can be usefull for actions in table for example. Here we click on on element on the right of a text
Property
text
text display on the screen or text1|text2 with text1 display on the screen and text2 for the text of the object (ex:button).
Parameter
empty
If just one text in the property, click on the first clickable element at the right of the text.
If two parameters, we search for text1 and click on the first clickable element at the right of text1 and containing text2.
For example, in http://cloud-preprod.kaliostest.com/code-practice/ for table :
if we use the action clickrightbytext with property='Jane Doe' it will click on the checkbox of line 6 :
if we use the action clickrightbytext with property='Holden Charles|Button' it will click on the button of line 5 :
We can use context keyword to manage duplicated text. For example, if we use the action clickrightbytext with Property="Holden Charles|Button|context=Table" it will search for the button in the right of Holder Charles in the context the Table.