Hi all,
I have been able to find a text string in a web page by using
ie.text.include?
However, I have not been able to find a simple solution to finding
text string in an HTML page source. Specifically, I am trying to
detect if there is a javascript error that would show up in the source
when a specific cross-site scripting vector is introduced in a URL but
won't and can't be seen in the web page.
For example, from the following URL I am expecting that a javascript
error would occur and the expected vector will be in the HTML source:
http://someserver:123/test.jsp?Application=app1%e9%a0%812%22%3e%3cp+OnMoUsEoVeR%3dalert('XSS')%3e

In the outcome from this URL execution, my goal is to be able to find
the "('XSS')" string in the HTML page source and report the pass or
fail base upon that.

Any idea and help with examples would be much appreciated.

Thank you.
fandi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to