Answer the question
In order to leave comments, you need to log in
Clicks don't work in Selenium, huh?
Good afternoon / evening, I immediately apologize if my question is amateurish.
The bottom line is this: there is a site ( lichess ), using python + selenium I go to it, after which I switch to playing with a computer. When you try to interact with the shapes, the result does not follow. The script fired by the mouse performs its actions but the shapes do not respond to these actions. Moreover, if you intervene in the process and move some figure on your own, then everything starts to work, and the previous instructions that did not work before begin to work properly. I also tried to act through ActionChains, the result is similar.
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("http://ru.lichess.org/setup/ai")
driver.find_element_by_xpath("//label[@for='level_8']").click()
driver.find_element_by_xpath("//div[@class='color_submits']/button[1]").click()
#На следующую инструкцию фигуры не реагируют
driver.find_element_by_xpath("//square[53]").click()
Answer the question
In order to leave comments, you need to log in
What am I doing wrong?Picked up inches and think that now you can write any bot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question