google chrome - Python Selenium Element is not clickable -
i'm trying gather information on website using python 3.6 , selenium, however, page loads right away on chrome(54.0.2840.87(64-bit)), goes tab(case logs) half second, changes tab(alerts).
i tried find using 'find_element_by', clicking @ point, finding text on tab(case logs). if use 'find_element_by_xpath', 'element not clickable @ point (488, 93). other element receive click'.
here code:
from selenium import webdriver time import sleep selenium.webdriver.common.keys import keys selenium.webdriver.common.by import selenium.webdriver.support.ui import webdriverwait selenium.webdriver.support import expected_conditions ec selenium.webdriver.common.action_chains import actionchains #enter credentials user = input('user: ') password = input('password: ') case = input('case: ') #open page driver= webdriver.chrome() driver.maximize_window() driver.get('.com') #login elem = driver.find_element_by_id("user") elem.send_keys(user) elem = driver.find_element_by_id("password") elem.send_keys(password) elem.send_keys(keys.return) #find case elem = driver.find_element_by_id("searchcaseidhome") elem.send_keys(case) elem.send_keys(keys.return) #find notes elem = driver.find_element_by_xpath("//*[@id='ext-gen151']") elem.click()
elem = driver.find_element_by_xpath("//*[@id='ext-gen151']") elem.location_once_scrolled_into_view elem.click()
Comments
Post a Comment