0
<html lang="pt-br"> <head><title></title></head><body><img id="1" alt="1" src="http://www.imagenspng.com.br/wp-content/uploads/2015/06/imagenspng_logo4.png" style="width: 150px; height: 150px;" /><img id="2" alt="2" src="http://www.imagenspng.com.br/wp-content/uploads/2016/04/peppa-pig-01.png" style="width: 150px; height: 150px;" /><img id="3" alt="3" src="http://www.imagenspng.com.br/wp-content/uploads/2016/04/peppa-pig-02.png" style="width: 150px; height: 150px;" /></body></html>
good morning friends, could help me how to get the image link with javascript or c# I am doing this
var res14 = await chromeBrowser1.EvaluateScriptAsync("document.getElementsByTagName('img')[2].src");
but in this case it only brings the src of image 2, but need that when you click on image 1 or any other image it brings the way. Grateful to all
Welcome to Stackoverflow, Kelly! You want to add function to a mouse click on an image, is that it? Can you clarify what you mean by "bring the image path"? Please edit your question and include all information you can about what you intend to do.
– Daniel