dayvonjersen / ajaxslt

Automatically exported from code.google.com/p/ajaxslt
Other
0 stars 0 forks source link

XPath requests on hyperlinks fail if the href attribute doesn't contain "http://" (only with IE) #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
See the file attached and open it with Firefox and IE. Click on "TestMe!".

What is the expected output? What do you see instead?
You should see "Result: 1" twice. That means that the XPath requests are
correctly executed. With IE the first request works but not the other one,
consequently you should see "Result: 1" and then "Result: 0"

What version of the product are you using? On what operating system?
v0.8.1

Original issue reported on code.google.com by ph.dezan...@gmail.com on 21 Jul 2009 at 1:55

Attachments:

GoogleCodeExporter commented 8 years ago
This issue is related to the way IE works. As explained in this forum
(http://clearspace.openqa.org/message/62219), IE resolves the href attribute to 
give
an absolute URL with the domain name (not just the string initially given).
The XPath requests should then use 'contains' instead of '='.

Original comment by ph.dezan...@gmail.com on 22 Jul 2009 at 11:31