In the page which I mentioned, if you select the section
Refreshing an Updatepanel Programatically,
and select three Options , then all the answers will appear on the completed questions text Box and when you select the third answer, a submit button will also appear.
Finally when you view the source of the page after doing the above, you will see that in the completed Questions section there is no text as well as the button Submit.
</script>
In this case since the source of the page does not show the text as well as the submit button , how do you test in Perl?
In some pages, not in the link whih I gave, there are some times fields for <input> like Login Name and Password which we have to enter which will not appear like above in the view source or in the frame.In those cases, is there a way from Perl to input those and test those pages automatically?
Re^5: IE Automation with Update Panel
by plobsing (Friar) on Jan 06, 2008 at 17:16 UTC
|
For your example, you are right, the content of interest does not appear in the HTML source of the page. This is because the webpage is being updated with AJAX using
this library (I think).
Here is my (simplified) view of the browser:
Code From -> (Java)Script -> Internal -> Renderer
Internet Engine Document
What you are seeing with the view-source is the code from the internet. But what you need to be looking at is the internal document output by the script engine.
I know you can get this using the JavaScript plugin for WWW::Mechanize. I am not familiar with Win32::IEAutomation, but it would seem to me that the Content() method should return the internal document. | [reply] [d/l] [select] |
|
|
You got it.I will look into that script engine as well the javascript plug-in.
Thanks a lot.
| [reply] |
Re^5: IE Automation with Update Panel
by Gangabass (Vicar) on Jan 06, 2008 at 17:05 UTC
|
Than you need something that use DOM. And as i realize from Win32::IEAutomation "It drives internet explorer using its DOM properties and methods."
| [reply] |