Thursday, August 2, 2018

check if an image is displayed on page -- Selenium


string image = "";
            js.ExecuteScript("arguments[0].naturalWidth != \"undefined\" && " + "arguments[0].naturalWidth > 0", image);

---------------

second way :



No comments:

Post a Comment