I am trying to click the "Sign In" button by XPATH and still have issues with this on on certain websites (indeed.com, twitter.com), but it works just fine on others (ziprecruiter.com). Initially, I was trying by class but hit a block with multi-class.
It print the object just fine, but gives an error on click().
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Safari()
def startBot(userName,passwordj,url):
driver.get('https://www.indeed.com/')
driver.maximize_window()
a = driver.find_element(By.XPATH, '//*[@id="gnav-main-container"]/div/div/div[2]/div[2]/div[2]/a')
print(a)
a.click()
startBot("","","https://indeed.com/")