Hello-

I’m having a rather bizarre problem with part of the locator I’m using being dropped.  This is only a problem when using driven mode (.NET driver).  If I write up a similar HTML file, it works fine.  I have an element that looks like 
 
<a href="http://localhost/Web10Thunder/calendars/publishingpipelinetest" target="_blank">http://localhost/Web10Thunder/calendars/publishingpipelinetest</a> 

 

that I want to click on.  I’ve tried the following

 

selenium.VerifyTextPresent("http://localhost/Web10Thunder/calendars/publishingpipelinetest", "");

selenium.ClickAndWait("//a[.=\"http://localhost/Web10Thunder/calendars/publishingpipelinetest\"]");

 

and in both cases the calendars/ from the middle of the string gets dropped, so the commands fail.  This makes no sense to me.  I’ve debugged into the .NET driver and verified that the command string gets constructed as "|clickAndWait|//a[.=\"http://localhost/Web10Thunder/calendars/publishingpipelinetest\"]||", and that the web request looks correct.  However, upon execution of the command, I get the following in the _javascript_ Log Console: Error: Element http://localhost/Web10Thunder/publishingpipelinetest not found. Furthermore, if I change the string to "http://localhost/Web10Thunder/calendars/calendars/publishingpipelinetest" then it works. 

 

Has anyone ever seen a problem like this, or any idea how the string is getting changed??

 

Thanks,

Chloe

_______________________________________________
Selenium-users mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to