I want to find a element in the list but I am in middle of the list so I have do both scroll up and down to find the element in the list. Can Anyone help how to do both scroll up and down to find the element in the list
Thanks in advance
Karthick
I want to find a element in the list but I am in middle of the list so I have do both scroll up and down to find the element in the list. Can Anyone help how to do both scroll up and down to find the element in the list
Thanks in advance
Karthick
If there's no logical way to decide if it is going to be higher or lower, you could do both:
begin
#scroll up, look and click
rescue
#scroll down, look and click
#this will be skipped if the above code finds the element
end