webdriverwait

Python - Tor Browser through Firefox, unable to click button

試著忘記壹切 提交于 2020-08-17 08:20:51
问题 So i have been trying to access a certain site (dumpert.nl) through Tor Browser as proxy via Firefox. The reason I am using Tor Browser is so I can enter the website with a different IP address every time I enter the website. I know this is possible but I have not yet found the way to do this. I have found multiple ways to do this, but they have not (yet) worked for me. Help is wanted on this part aswell. The real problem is I am having trouble with the Accept Cookie page of this website.

selenium in python : NoSuchElementException: Message: no such element: Unable to locate element

强颜欢笑 提交于 2020-08-12 07:07:14
问题 I tried typing 'abc' in the first block of id and 'cdef' in the second block of password. However, the error code at the bottom comes up. from selenium import webdriver driver.get('http://sugang.korea.ac.kr') Added implicitly wait to prevent the code from executing before the page fully loads. driver.implicitly_wait(30) Code for adding username and password is as below driver.find_element_by_name('id').send_keys('abc') driver.find_element_by_name('pw').send_keys('cdef') But getting below

selenium in python : NoSuchElementException: Message: no such element: Unable to locate element

不问归期 提交于 2020-08-12 07:06:42
问题 I tried typing 'abc' in the first block of id and 'cdef' in the second block of password. However, the error code at the bottom comes up. from selenium import webdriver driver.get('http://sugang.korea.ac.kr') Added implicitly wait to prevent the code from executing before the page fully loads. driver.implicitly_wait(30) Code for adding username and password is as below driver.find_element_by_name('id').send_keys('abc') driver.find_element_by_name('pw').send_keys('cdef') But getting below

Element not being clicked even though it is found using Selenium

送分小仙女□ 提交于 2020-08-10 20:14:48
问题 I'm trying to click on an element (radio button) using Selenium (in Python), I can't disclose the URL because it's a private corporate intranet, but will share the relevants part of code. So basically this element is within an iframe, thus, I've used the following code to get the element: # Select the item on main DOM that will udpate the iframe contents wait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='sm20']"))).click() # Don't sleep, but only WedDriverWait... wait

Element not being clicked even though it is found using Selenium

北城余情 提交于 2020-08-10 20:13:07
问题 I'm trying to click on an element (radio button) using Selenium (in Python), I can't disclose the URL because it's a private corporate intranet, but will share the relevants part of code. So basically this element is within an iframe, thus, I've used the following code to get the element: # Select the item on main DOM that will udpate the iframe contents wait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='sm20']"))).click() # Don't sleep, but only WedDriverWait... wait

StaleElementReferenceException: element is not attached to the page document while selecting the options from multiple Dropdowns using Selenium Python

萝らか妹 提交于 2020-08-10 19:30:18
问题 Code trial: #coding=utf-8 from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select, WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time import pandas as pd # Below is to crawl data from a webpage with two different dropdown try: driver = webdriver.Chrome('./chromedriver') driver.get('https://price.joinsland.joins.com/theme/index_theme.asp

“Component not initialized” nsresult: “0xc1f30001 (NS_ERROR_NOT_INITIALIZED)” error with Selenium GeckoDriver and Mozilla

一曲冷凌霜 提交于 2020-08-09 08:00:51
问题 I am trying to execute my code in Firefox, sometimes it works but majority of time i get exception as: [Exception... "Component not initialized" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: chrome://marionette/content/dom.js :: addEventListener :: line 67" data: no] Its happening from last week, previously it was working fine for me. 回答1: NS_ERROR_NOT_INITIALIZED resembles an attempt which was made to use a component or object which has not yet been initialized.

How do you use EC.presence_of_element_located((By.ID, “myDynamicElement”)) except to specify class not ID

落花浮王杯 提交于 2020-08-08 06:41:33
问题 I am trying to use Python to web scrape a website that loads it's HTML dynamically by using embedded javascript files that render the data as a Response into the HTML. Therefore, if I use BeautifulSoup alone, I will not be able to retrieve that data that I need as my program will scrape it before the Javascript loads the data. Due to this, I am integrating the selenium library into my code, to make my program wait until a certain element is found before it scrapes the website. I had

ElementNotInteractableException: Message: element not interactable error sending text in search field using Selenium Python

心已入冬 提交于 2020-07-30 11:43:08
问题 I try to use send_keys on a website, which gives me an error of element not interatable. Here is my code below: import selenium from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.select import Select from selenium

Using Selenium in Python to enter currency format text

一曲冷凌霜 提交于 2020-07-23 05:20:07
问题 Trying to enter the value "100000" into a web form using Selenium in Python, but it is consistently not working no matter how I try to send it. I apologize for my lack of knowledge about the terminology. I will try my best but I am self-taught and a novice. Also, I apologize but I cannot tell you the website or my employer would not be very happy. The box on the webpage is automatically populated with a dollar sign. I know that the box in the web form is expecting an integer in currency