0

Automating logging into homeroom everyday, the teacher posts a new link to meets everyday but the link is always in the same position on the screen. I cant simply find element by xpath, id, class etc... This is why I figured if I could simply click on certain coordinates my problem would be solved but im having trouble doing this in selenium. Im fairly new to python though and im sure theres something ive missed, any bright ideas?

1
  • Your code trials? Commented Nov 17, 2020 at 19:22

2 Answers 2

1

Can actually not comment your question directly, cause of reputation - Would be great to show some code you have written or going more in to detail.

Just a hint ActionChains

from selenium.webdriver.common.action_chains import ActionChains
actions = ActionChains(driver)

actions.move_to_element_with_offset(driver.find_element_by_tag_name('body'), 0,0)
actions.move_by_offset(X coordinates, Y coordinates).click().perform()
Sign up to request clarification or add additional context in comments.

Comments

0

Try PyAutoGUI.

You can pip install it, then add pyautogui.moveTo(x, y) in your Selenium script.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.