Tithibots / tithiwa

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

Issue-60 Created get_number_from_contact_name #69

Closed pyvelkov closed 3 years ago

pyvelkov commented 3 years ago

Issue #60 done. Please review and make necessary changes.

NavpreetDevpuri commented 3 years ago

That's how we can come up to know the selector chrome_VCxScS1ke5

NavpreetDevpuri commented 3 years ago

An error. It's because we are passing (By.CSS_SELECTOR, '._3Whw5 > ._1X4JR') to function find_element(), but we need to pass two strings like i did https://github.com/Tithibots/tithiwa/blob/95db9e7c6b2376c4b12895c561fd0c18724ead7a/tithiwa/waobject.py#L51 A better way to do that is to use self._wait_for_presence_of_an_element() because we need to wait for that element to appear ShareX_amzDErd48n

NavpreetDevpuri commented 3 years ago

Debugging... I paused execution to find python code to do something efficiently ShareX_94U6NcPiQk

NavpreetDevpuri commented 3 years ago

mobile number is taking time to load. i.e HTML elements appear first then after few mini seconds the mobile number appears in that element

it is more challenging than I thought 👀