You should not use the `_1UoZIX` identifier. It's generated on the fly (dynamically) and changes over time. It also has no semantic meaning, doesn't say fridge at all Getting to the 'first search result image' element generically, i.e. first result and not just when it is that fridge... is going to be a challenge given the layout. One approach that might work is (pseudo code) a locator that is something like //div a[@href='/']/img[2] i.e. find the main div based on the home anchor within it and then look for the second image within that div. I don't like this much but this is due to the page structure presented. Some version of this may work. Also, unless you use relative addressing I prefer css locators for readability and compactness, e.g. div a[href=''] img:nth-child(2) In this case the CSS identifier is longer but that is fairly unusual.