One of the desired elements is in the right corner of the page, and selenium will not see it unless I manually resize the window to make the element present. If I do so, everything works fine. Selenium will find the element, click on it, and do what I want it to do. Here is my code in python
wait.until(EC.element_to_be_clickable((By.XPATH, "//input[@id='15_button']")))
num_list = driver.find_element_by_xpath("//input[@id='15_button']")
num_list.click()
I have tried to resize the window by using
driver = webdriver.Chrome()
driver.set_window_size(1024, 1024)
driver.maximize_window()
which does make the element visible as the browser starts, but then Selenium gives the error
Message: unknown error: Element is not clickable at point (1206, 719). Other element would receive the click: <li id="15_input_5" class="selected">...</li>
Does anyone knows how to fix it?
Thanks a lot!