Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

Wait for the button to be at clickable i.e wait for the removal of the overlay #45

Closed NavpreetDevpuri closed 3 years ago

NavpreetDevpuri commented 3 years ago

Try to make multiple groups as follow

tithiwabot.group.create_group("Group made by tithiwa1", ["Navpreet Devpuri", "TiDdi"])
tithiwabot.group.create_group("Group made by tithiwa2", ["Navpreet Devpuri", "TiDdi"])

Error while creating the 2nd group

  File "F:/projects/tithiwa/tithiwa/temp1.py", line 10, in <module>
    tithiwabot.group.create_group("Group made by tithiwa2", ["Navpreet Devpuri", "TiDdi"])
  File "F:\projects\tithiwa\tithiwa\group.py", line 24, in create_group
    self._wait_for_an_element_to_be_clickable(SELECTORS.CREATE_NEW_GROUP.OK_CONTACTS_TYPE).click()
  File "F:\projects\tithiwa\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "F:\projects\tithiwa\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "F:\projects\tithiwa\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "F:\projects\tithiwa\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <span data-testid="arrow-forward" data-icon="arrow-forward" class="">...</span> is not clickable at point (160, 833). Other element would receive the click: <div class="_11dpe">...</div>
  (Session info: chrome=86.0.4240.75)

Caused by an overlay element on the button as follow InkedMGAfgA3B0p_LI