clickimage
Last updated
Last updated
Click on an element
Property
text
text display on the screen or xpath
Parameter
index
index of the image (1 for the first image, 2 for the second, ...)
For example in http://automationpractice.com/index.php, clickimage with property = POPULAR and parameter=2 will click on the second image near POPULAR (so blouse in the picture below):
Instead of the text, we can put the xpath to locate the container of the pictures. So in http://automationpractice.com/index.php, clickimage with the property=//ul[startswith(@id,"homefeatured")] and parameter=1 will click on the first image of the products container (Faded Short Sleeve T-shirts in the exemple).