Note that there are some explanatory texts on larger screens.

plurals
  1. POInvalidElementStateException while running Selenium Webdriver with PhantomJS
    primarykey
    data
    text
    <p>I'm running selenium tests which work OK in Firefox, but I get an error when using PhantomJS.</p> <p>Here is my python code:</p> <pre><code> driver.find_element_by_link_text("Add Province").click() driver.find_element_by_id("id_name").clear() driver.find_element_by_id("id_name").send_keys("Frosinone") driver.find_element_by_id("id_code").clear() driver.find_element_by_id("id_code").send_keys("FR") </code></pre> <p>And here is the error I'm getting:</p> <pre><code>driver.find_element_by_id("id_name").clear() self._execute(Command.CLEAR_ELEMENT) return self._parent.execute(command, params) self.error_handler.check_response(response) raise exception_class(message, screen, stacktrace) E InvalidElementStateException: Message: u'Error Message =&gt; \'Element is not currently interactable and may not be manipulated\'\n caused by Request =&gt; {"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Length":"81","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:38159","User-Agent":"Python-urllib/2.7"},"httpVersion":"1.1","method":"POST","post":"{\\"sessionId\\": \\"e0d4d1b0-2f36-11e3-af69-b579903d9fbd\\", \\"id\\": \\":wdc:1381139859399\\"}","url":"/clear","urlParsed":{"anchor":"","query":"","file":"clear","directory":"/","path":"/clear","relative":"/clear","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/clear","queryKey":{},"chunks":["clear"]},"urlOriginal":"/session/e0d4d1b0-2f36-11e3-af69-b579903d9fbd/element/%3Awdc%3A1381139859399/clear"}' ; Screenshot: available via screen </code></pre> <p>It is unable to find element <code>id_name</code>, yet when run with FireFox, works perfectly.</p> <p>Anyone knows if there is a current bug with PhantomJS that addresses this issue?</p> <p>Currently using Selenium 2.35.0 and PhantomJS 1.9.2 on Ubuntu 12.04</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload