I would need any advice for my problem.
The bot need to click a button which will appear on a given time as fast as possible.
The litte problem here is that I quit sure im not allowed to share the html/js part of my
university logged in page.
I will try my best to explain the problem whit the code below.
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time path = "C:my_path" options = webdriver.ChromeOptions() options.add_argument("user-data-dir=\\Users\\aaaa\\AppData\\Local\\Google\\Chrome\\User Data\\") driver=webdriver.Chrome(path, chrome_options=options) driver.get("university link") login = driver.find_element_by_class_name("toolLogin") login.click() user = driver.find_element_by_id("username") user.send_keys("my_username") pwd = driver.find_element_by_id("password") pwd.send_keys("my_password") lgnbtn = driver.find_element_by_id("samlloginbutton") lgnbtn.click()
until here im just logging in
driver.get("link to get me to the page where the button will appere on first dropdown row")
this leads me to the page where I have to click on a dropdown and now I have a problem.
The register button only appears in the first row of the dropdown at a given time and disappear when all places are occupied.
So my bot needs to click a button (as fast as possible) I don’t now the id, class , path of.
ANY advice would be appreciated !