Hello,
My Test:
I want to get the text of an element.
This test works on Selenium RC 2.29 but not on Selenium RC 2.30.
My config:
Windows 7
Firefox 18.0.2 (same issue with Firefox 19.0)
selenium-server-standalone-2.30.0.jar
PHPUnit_Selenium 1.2.12
The element (the text is Accueil):
![]()
My code (PHP):
$TexteElement = $this->byXPath('html/body/div[1]/div[3]/ul/li[1]/a')->text();
echo '-'.$TexteElement.'-'."\n";
Result S-RC 2.29:
-Acceuil-
Result S-RC 2.30:
--
=>Selenium doesn't detect the text.
09:24:46.921 INFO - Executing: [find element: By.xpath: html/body/div[1]/div[3]/
ul/li[1]/a] at URL: /session/fcbdb2ce-87b7-4efe-a07c-c07f42897fa0/element)
09:24:46.930 INFO - Done: /session/fcbdb2ce-87b7-4efe-a07c-c07f42897fa0/element
09:24:46.935 INFO - Executing: [get text: 3 org.openqa.selenium.support.events.E
ventFiringWebDriver$EventFiringWebElement@e939116c] at URL: /session/fcbdb2ce-87
b7-4efe-a07c-c07f42897fa0/element/3/text)
09:24:46.953 INFO - Done: /session/fcbdb2ce-87b7-4efe-a07c-c07f42897fa0/element/
3/text
Is it an issue in S-RC 2.30 or in my code?
Thanks in advance.
Julien