Take screenshot while highlighting the field during runtime

Hi All,
Is there any way to acheive this, I want to take screenshot while the fields are highlighted in a Webbrowser.
I am able to highlight but not much of success while highlighting the field
Thanks

Showing Answers 1 - 3 of 3 Answers

preet

  • Sep 19th, 2017
 

No way to do it in webDriver
you can do this in javascriptExecutor
if (driver instanceof JavascriptExecutor) {
((JavascriptExecutor)driver).executeScript("arguments[0].style.border=3px solid red", elem);
}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions