phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

Element is not currently interactable and may not be manipulated

Open fraogongi opened this issue 13 years ago • 4 comments

I get a problem while running Selenium tests (Python) with PhantomJS. I have a form with just two input fields. Works perfectly OK in Firefox and other browsers, but when using PhantomJS, I get the following error regarding element with id=id_name

     "InvalidElementStateException: Message: u'Error Message => \'Element is not currently interactable and may not be manipulated"

I can clearly see the the input elements are present when I take a screenshot via selenium functions. And my code is as simple as the following:

    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")

Is this an issue with PhantomJS itself?

As an example script to test, see the following python file "login_test.py"

import unittest
from selenium import webdriver

class TestOne(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.PhantomJS()

    def test_url(self):
        self.driver.get("https://signup.live.com/")
        self.driver.find_element_by_id('iFirstName').send_keys("realpython")
        self.driver.find_element_by_id("iLastName").send_keys("realpython")
        #self.driver.find_element_by_id("loginsubmit").click()

    def tearDown(self):
        self.driver.quit

if __name__ == '__main__':
    unittest.main()

To run this, simply type "python login_test.py ". You will notice that the input elements are not found yet they are there on the page.

fraogongi avatar Oct 08 '13 06:10 fraogongi

What is the best way to get some help on this?

julienaubert avatar Oct 16 '13 13:10 julienaubert

I am also having this issue.

maxko87 avatar Oct 08 '15 22:10 maxko87

I meet this problem too,have you soluted it now?

ConstantinSco avatar Dec 23 '17 03:12 ConstantinSco

Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

stale[bot] avatar Dec 28 '19 23:12 stale[bot]