{"issue":{"created_at":"2011-12-08T15:26:16Z","state":"open","updated_at":"2011-12-12T02:18:18Z","user":{"gravatar_id":"04692ccf76b981e37e1cd1c5115a39a0","id":1235868,"url":"https://api.github.com/users/ildar-aim","avatar_url":"https://secure.gravatar.com/avatar/04692ccf76b981e37e1cd1c5115a39a0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ildar-aim"},"comments":3,"body":"The problem is the \r\n$session->element('id', 'base_element')->element('xpath', '//div[@class=\"descr\"]')\r\ndoes not work as expected according to the\r\nhttp://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/element/:id/element\r\n\r\nThe expected result is 'test is passed' instead of 'test is failed'\r\n\r\nCode to reproduce\r\n\r\nindex.php\r\n<?php\r\n\r\nrequire_once \"./facebook-php-webdriver/__init__.php\";\r\n\r\n        $wd_host = 'http://192.168.12.170:4444/wd/hub'; \r\n        $web_driver = new WebDriver($wd_host);\r\n\r\n        $session = $web_driver->session('firefox'); \r\n        $session->open('http://xc53.crtdev.local/~aim/t.html');\r\n\r\n\r\n        $txt = $session->element('id', 'base_element')->element('xpath', '//div[@class=\"descr\"]')->text();\r\n        print_r($txt);die;\r\n?>\r\n\r\nt.html for test1\r\n-------------------------------------------------\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;\r\n&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;\r\n&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Home :: Profile details :: Warning&lt;/title&gt;\r\n&lt;/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div class=&quot;descr&quot;&gt;test is failed&lt;/div&gt;\r\n\r\n&lt;div id='base_element'&gt;&lt;/div&gt;\r\n\r\n&lt;div class=&quot;descr&quot;&gt;test is passed&lt;/div&gt;\r\n\r\n&lt;/body&gt;\r\n&lt;/html&gt;\r\n\r\n\r\nt.html for test2\r\n-----------------------------------------------------\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;\r\n&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;\r\n&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Home :: Profile details :: Warning&lt;/title&gt;\r\n&lt;/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div class=&quot;descr&quot;&gt;test is failed&lt;/div&gt;\r\n\r\n&lt;div id='base_element'&gt;\r\n        &lt;div class=&quot;descr&quot;&gt;test is passed&lt;/div&gt;\r\n&lt;/div&gt;\r\n\r\n&lt;/body&gt;\r\n&lt;/html&gt;\r\n\r\n\r\n\r\nOutput of the script is \r\n[19:22][aim@rt:p4][~/www/selenium_tests]$ php index.php\r\ntest is failed\r\n[19:22][aim@rt:p4][~/www/selenium_tests]$ ","assignee":null,"id":2488842,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":15,"title":"/session/:sessionId/element/:id/element does not work?","html_url":"https://github.com/facebook/php-webdriver/issues/15","closed_at":null,"url":"https://api.github.com/repos/facebook/php-webdriver/issues/15","milestone":null},"action":"created","comment":{"created_at":"2011-12-12T02:18:18Z","updated_at":"2011-12-12T02:18:18Z","user":{"gravatar_id":"a03752edeee1c5d6310ab73d4361644d","id":13165,"url":"https://api.github.com/users/jubishop","avatar_url":"https://secure.gravatar.com/avatar/a03752edeee1c5d6310ab73d4361644d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jubishop"},"body":"this sounds like a legit problem, but you should raise it with the webdriver folks at http://code.google.com/p/selenium/ , i don't believe it's an issue with the client if i understand correctly.","id":3101403,"url":"https://api.github.com/repos/facebook/php-webdriver/issues/comments/3101403"}}