in reply to Unable to find_element using 'contains text' when run through Selenium-Remote-Driver

@text and text() are two different things in XPath: the first one is an attribute, the second one a text content of an element. You probably need
my $configTab=$selConn->find_element("//td[contains(text(),'Configurat +ion')]")->click;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Unable to find_element using 'contains text' when run through Selenium-Remote-Driver
  • Download Code

Replies are listed 'Best First'.
Re^2: Unable to find_element using 'contains text' when run through Selenium-Remote-Driver
by bkobs39 (Acolyte) on Jun 27, 2014 at 17:34 UTC
    Thanks for the reply and the clarification around 'text' and '@text'. I tried your suggestion, but unfortunately that also fails: An element could not be located on the page using the given search parameters:
    //td[contains(text(),'Configuration')],xp ath

      but unfortunately that also fails: An element could not be located on the page using the given search parameters:

      You realize this is kind of impossible, right? If it works from the GUI it should work from perl, all other things being equal