Re: [JWebUnit-users] Accessing dynamic images created in Javascript

2010-09-30 Thread Jevon Wright
Hi Jeff, Firstly yes, JWebUnit/HtmlUnit handles most types of Javascript, so it should be fine as long as your Javascript is compliant. Yes, using an XPath approach sounds fine. Have you tried searching through all //img, and making sure your image is first present there? Perhaps the @src attribu

[JWebUnit-users] Accessing dynamic images created in Javascript

2010-09-29 Thread Jeff Davies
Hi all, Another quick question. I have some javascript/JQuery that is creating an img dynamically. I tried using the assertElementPresentByXPath()method but that is not behaving as expected. For example, I have an Ajax call that builds the img tag as follows: xmlhttp.onreadystatechange=func