bkobs39 has asked for the wisdom of the Perl Monks concerning the following question:
The following statement works as expected when run through the Firefox Selenium IDE 2.5.0:
When I try and run this using perl's Selenium-Remote-Driver, it fails. My perl command:Commmand: click Target: //td[contains(text(), 'Configuration')]
Error: An element could not be located on the page using the given search parameters: //*[text()=Configuration],xpath Any ideas why this would fail? I am able to click other items, just not ones where I try and find the element by text. I have also tried:my $configTab=$selConn->find_element("//td[text()='Configuration']")-> +click;
But this also fails... Please help!!my $configTab=$selConn->find_element("//td[contains(\@text, 'Configura +tion')]")->click;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to find_element using 'contains text' when run through Selenium-Remote-Driver
by choroba (Cardinal) on Jun 27, 2014 at 15:30 UTC | |
by bkobs39 (Acolyte) on Jun 27, 2014 at 17:34 UTC | |
by Anonymous Monk on Jun 28, 2014 at 06:59 UTC |