Subject: | Inconsistence between get_xpath_count and assign_id |
Hi,
I have a web where:
my $n_issues=$sel->get_xpath_count("(//td[starts-with(\@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(\@title)>0]/\@id)[1]");
Returns 1
But:
$sel->assign_id("(//td[starts-with(\@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(\@title)>0]/\@id)[1]","prueba");
Returns:
Element (//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1] not found
Logs in selenium 2.0b3 :
11:53:39.219 INFO - Command request: getXpathCount[(//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1], ] on
session b2b316ebf3d8453ea08f995b489d83ef
11:53:39.269 INFO - Executing: |getXpathCount | (//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1] | |
11:53:39.276 INFO - Got result: OK,1 on session b2b316ebf3d8453ea08f995b489d83ef
11:53:39.279 INFO - Command request: assignId[(//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1], prueba] on
session b2b316ebf3d8453ea08f995b489d83ef
11:53:39.288 INFO - Executing: |assignId | (//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1] | prueba |
11:53:39.303 ERROR - Element (//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1] not found
11:53:39.306 INFO - Got result: ERROR: Element (//td[starts-with(@id,'formIncidentsUnasigned:incidentsListToUser')]/a/span[number(@title)>0]/@id)[1] not found on
session b2b316ebf3d8453ea08f995b489d83ef
I don't know where is my fail here :(. I think attaching only the html will don't help to solve this issue.
Do you have any tip for me ?
Thanks!