I want to generate detailed report of failed fields in Selenium webdriver. I want to highlight the field which failed during automation.Please send me the code for that.
Asked
Active
Viewed 65 times
-2
-
can you tell us what have tried so far? – Mrunal Gosar Jan 16 '15 at 05:50
-
@ Mrunal Hi, I got the failed page screenshot, but I want to highlight the particaular failed field in that page. – user123 Jan 16 '15 at 05:54
-
Means you want to highlight the field in Screenshot??? – Vivek Singh Jan 16 '15 at 05:57
1 Answers
0
javascript is the only way for that. change css attribute of that element. write javascript snippet and run it (JavaScriptExecutor) class. This should highlight the element and then u can take the screen shot.

Community
- 1
- 1

Mrunal Gosar
- 4,595
- 13
- 48
- 71
-
-
1Simple googling returned me with this url: http://stackoverflow.com/questions/10660291/highlight-elements-in-webdriver-during-runtime. you should try searching first in stackoverflow – Mrunal Gosar Jan 16 '15 at 06:27