Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element not interactable #9

Open
alexissahagun1 opened this issue Aug 31, 2020 · 3 comments
Open

Element not interactable #9

alexissahagun1 opened this issue Aug 31, 2020 · 3 comments

Comments

@alexissahagun1
Copy link

Hi, I got an error after I setup the program with my info, I know that the error means that the element is not visible yet, but I can't find a solution to it.

DevTools listening on ws://127.0.0.1:1862/devtools/browser/2700e967-dbdf-4d49-9164-4dd5edb873bb Traceback (most recent call last): File "apply.py", line 168, in <module> aggregatedURLs = get_links.getURLs() File "C:\Users\AlexisSahagun\common-intern\get_links.py", line 137, in getURLs success = go_to_listings(driver) File "C:\Users\AlexisSahagun\common-intern\get_links.py", line 48, in go_to_listings location_field.clear() File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 95, in clear self._execute(Command.CLEAR_ELEMENT) File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute return self._parent.execute(command, params) File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=84.0.4147.135)

@giosal
Copy link

giosal commented Nov 15, 2020

Running into same problem here

Traceback (most recent call last):
  File ".\get_links.py", line 184, in <module>
    getURLs()
  File ".\get_links.py", line 137, in getURLs
    success = go_to_listings(driver)
  File ".\get_links.py", line 48, in go_to_listings
    location_field.clear()
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webelement.py", line 95, in clear
    self._execute(Command.CLEAR_ELEMENT)
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
  (Session info: chrome=86.0.4240.198)

Disclaimer: replaced username with ***

@giosal
Copy link

giosal commented Nov 15, 2020

Found a solution here and will ask for merge.
The driver can't find the element sc.location when the window is not maximized, depending on your screen resolution. If you take a look at the page, the location input field is missing. So, I propose to start window maximized to avoid this error.
Add the following code before driver initialization:

options = webdriver.ChromeOptions()
options.add_argument("--start-maximized")

on Windows or --kiosk on Linux
and then replace driver initialization with the following (don't forget to add the driver location if needed:
driver = webdriver.Chrome(options=options)

@abhijeet010304
Copy link

abhijeet010304 commented Dec 14, 2020

Solution by @giosal worked for me !! i.e you can run getlinks file by maximising the window .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants