Hi all,
I am playing with a project that requires doing a search in google images, clicking the first image that comes up and grabbing the url.
I am using chrome. It seems to largely work, though I can’t seem to work out how to click that first image result in a way that lets it be variable based on the search.
Any thoughts on how I would manage that?
vvaidya
(Vinay Vaidya)
March 21, 2017, 1:41pm
2
I did not understand this part, do you mean since the image url is a variable and do you want to know how to store it?
DelOli
(o)
March 21, 2017, 3:13pm
3
I’m not sure if it helps but watch this tutorial:15:13
Discover how to build an automation that accesses a web application, enters the username and password, navigates through some options, resets the test data for the current user, and then successfully logs out.
This tutorial is part of the UI...
1 Like
Thanks DelOli, that did help, what I ended up doing was:
Use an offset in the click from the title bar to just click where the first image would be.
Do a scrape as per the video you linked to scrape the url which gave me the link in a datatable
Do a Webrequest to download the image
akhi_s27
(Akhilesh S.)
March 23, 2017, 9:16am
5
I’d say a dynamic selector should help.
<html title='*Google*' />
<webctrl id='res' tag='DIV' />
<webctrl idx='1' tag='img' />
This selector should give you the first image always.
1 Like
Thanks - I think that will be neater ongoing - I will give this a try.