I am trying to target this bit of code to click a login button
<button class="Global_PrimaryButton__30J6x Login_SubmitButton__3cJYV" type="submit">Login</button>
This is my python code
PATH = "C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("https://uplearn.co.uk/login")
element = WebDriverWait(driver, 5).until(EC.presence_of_element_located(By.LINK_TEXT,"Login"))
element.click()
And the error I get is:
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
driver = webdriver.Chrome(PATH)
element = WebDriverWait(driver, 5).until(EC.presence_of_element_located(By.LINK_TEXT,"login"))
TypeError: presence_of_element_located() takes 1 positional argument but 2 were given
Any solutions?