-2

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.

user123
  • 27
  • 8

1 Answers1

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.

enter link description here

Community
  • 1
  • 1
Mrunal Gosar
  • 4,595
  • 13
  • 48
  • 71
  • @ Munal ,Thanks for the information. Can you please send the code. – user123 Jan 16 '15 at 06:21
  • 1
    Simple 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