I can't understand what's wrong with me? please help me!!! - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: I can't understand what's wrong with me? please help me!!! (/thread-11414.html) |
I can't understand what's wrong with me? please help me!!! - 573462273 - Jul-07-2018 I consider about this problem for 3days, and I can't find the reason. url:http://www.globalinterpark.com/detail/edetail?prdNo=18007954&dispNo=01003 My code as follows: from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from bs4 import BeautifulSoup driver = webdriver.Chrome() wait = WebDriverWait(driver, 10) def open_concert(): print("open") driver.get(tickets_url) driver.get(tickets_url) wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, "body > div > div > div.wrap_Pinfo > div.bak > div.Py_Time > div.Date_Select > div.btn_Booking > img"))).click() log("successful") if __name__=="__main__": log("start") open_concert()wrong information as follows: I am waiting for your answer!!!! thank you!!!!!
RE: I can't understand what's wrong with me? please help me!!! - Larz60+ - Jul-07-2018 The traceback refers to lines 74 in open_concert, 67 in open_concert, and finally 80 in wait.py, the line numbers in open_concert don't correspond to the code you are showing. |