clickbelowbytext
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 an element below 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 below the text.
If two parameters, we search for text1 and click on the first clickable element below text1 and containing text2.
If we use http://automationpractice.com/index.php, we have an button bellow a text :
If we use clickbelowbytext with property='Blouse'|Add to cart, it will click on the button Add to car below Blouse.
We can also use context keyword to manage duplicated text. For example, if we use the action clickbelowbytext with Property="Printed Dress|Add to cart|context=$26.00" it will search for the button Add to cart below Blouse in the context of "$26.00" .