I'm trying to automate Tinder login using Google-linked account and can't seem to get past locating the identifierId and the identifierNext although these tags are clearly visible when I use chrome developer tools i.e. Inspect elements.
import selenium
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import time
import opencv
driver = webdriver.Chrome()
driver.get("https://www.tinder.com")
time.sleep(8)
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR,
"button[type = 'button'][aria-label = 'Log in with Google'] "))).click()
# accept = driver.find_element_by_tag_name('button')
time.sleep(8)
username = driver.find_element_by_id('identifierId')
username.send_keys('username')
nextButton = driver.find_element_by_id('identifierNext')
nextButton.click()
Following is the error message:-
DevTools listening on ws://127.0.0.1:65293/devtools/browser/41153ae6-eec1-41cc-982c-109e6f8af70b [9668:17672:0604/001513.541:ERROR:device_event_log_impl.cc(208)] [00:15:13.541] Bluetooth: bluetooth_adapter_winrt.cc:723 GetBluetoothAdapterStaticsActivationFactory failed: Class not registered (0x80040154) Traceback (most recent call last): File "e:/python.py", line 18, in username = driver.find_element_by_id('identifierId') File "C:\Users\Bhaskar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 360, in find_element_by_id return self.find_element(by=By.ID, value=id_) File "C:\Users\Bhaskar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element 'value': value})['value'] File "C:\Users\Bhaskar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\Bhaskar\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="identifierId"]"} (Session info: chrome=83.0.4103.61)
What seems to be the problem here?
User contributions licensed under CC BY-SA 3.0