DOM elements not visible to HtmlUnitDriver - Resolved
As long as i am in A.html page, all the DOM elements are easily accessible. As soon as i post values to another page from A.html page, these elements are not visible to my scripts. My automation fails. Any idea how to resolve this issue.
Last edited by rajulonline111; 05-10-2013 at 01:54 PM.
Lesson learnt 2: Problem: Turn on javscript on B.html, turns on the validations on all the fields in this page. Which is perfect. But there is field in which i can enter only numbers. Example: If you try to enter abc / !@# , it wipes out that field automatically. Even though i tried to enter 150 (this value is coming from csv file, so it is in the format "150"). The field validation here prevented me to enter this value and threw "com.gargoylesoftware.htmlunit.ScriptException : ReferenceError: "NumericOnlyModifier" is not defined." exception.
and how are you changing that setting?
These sort of debugging questions are very hard to figure out without the seeing the page in front of us.
I think it'll be helpful if you can recreate the conditions in Create a new Fiddle - jsFiddle, and post the selenium code snippet you're trying to use.