Professional Documents
Culture Documents
Agenda - Misc Selenium
Agenda - Misc Selenium
•getResponsecode(): We will fetch the response code and print OK if the URL works fine.
Else will give an error.
Example Table WebElement:
Table /html/body/div[1]/div[2]/div/div[2]/article/div/table/tbody/tr[2]/td[1]
we can use this File object to copy the image at our desired location, as
shown below, using the FileUtils Class.
1.Take the fullscreen image and then crop the image as per the dimensions of the web element.
2.Using the getScreenshotAs() method on the web element. ( This is available only in selenium version 4.X)