My test works with Selenium RC 2.29 but not with Selenium RC 2.30

71 views
Skip to first unread message

Arnold84

unread,
Feb 22, 2013, 3:38:08 AM2/22/13
to seleniu...@googlegroups.com
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

Arnold84

unread,
Feb 22, 2013, 3:43:07 AM2/22/13
to seleniu...@googlegroups.com
The element:

<a href="index.php?MenuItemId=1&option=com_blocs&Itemid=286">
<cufon class="cufon cufon-canvas" alt="Accueil" style="width: 51px; height: 15px;">
<canvas width="57" height="18" style="width: 57px; height: 18px; top: -3px; left: -1px;"/>
<cufontext>Accueil</cufontext>
</cufon>
</a>
<document>

=>Look at the picture enclosed
element.jpg

Arnold84

unread,
Mar 1, 2013, 3:02:17 AM3/1/13
to seleniu...@googlegroups.com
There is the same problem with Selenium RC 2.31.

Somebody have an advice for me.?

Thanks
Reply all
Reply to author
Forward
0 new messages