webdriverwait

How to handle html5 constraint validation pop-up using Selenium?

≡放荡痞女 提交于 2019-12-24 01:57:19
问题 The picture says it all. After click on "LOG IN" button, "Please fill out this field." pop-up message appears. It looks like some javascript thing. I want to get text of this pop-up message by using Selenium. Is it even possible ? Here is the html of email input field: <input autocorrect="none" autocapitalize="none" spellcheck="false" autofocus="autofocus" class="cell small-21 form-text required" data-drupal-selector="edit-name" aria-describedby="edit-name--description" type="text" id="edit

Scraping javascript data within a grid of a webpage using selenium and python

半城伤御伤魂 提交于 2019-12-24 01:18:51
问题 My issue is that I need all the data within the grid containing subdomains from the website https://applipedia.paloaltonetworks.com - (data containing NAME , CATEGORY, SUBCATEGORY, RISK, TECHNOLOGY). What I require is [Example: In line number 5: 2ch has 2 subdomains |_2ch-base and 2ch-posting. Like this I only want to get the list of all apps having subdomains] Right not whenever I have tried adding anything in the line: table =wait.until(EC.presence_of_all_elements_located((By.CSS_SELECTOR,

How to execute all javascript content on webpage with selenium to find and send login form info on fully loaded webpage

匆匆过客 提交于 2019-12-24 00:54:13
问题 I've been trying to make a Python script to login into a certain website, navigate through the menu, fill out a form and save the file it generates to a folder. I've been using Selenium trying to make the website fully load so i can find the elements for the login, but i'm being unsucessful, maybe because the website does a lot of JavaScript content before it fully loads, but i can't make it fully load and show me the data i want. I tried Robobrowser, Selenium, Requests and BeautifulSoup to

Python + Selenium: Wait until element is fully loaded

萝らか妹 提交于 2019-12-23 20:52:59
问题 So I have been trying to play around with the function in Selenium that is called: wait = WebDriverWait(browser, 20).wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="accountStandalone"]/div/div/div[2]/div/div/div[1]/button'))) wait.click() Before I'm starting to say the issue. What I'm trying to do a Selenium of is to basically make a Selenium that automatic write to the forumlar in this picture: Which isn't any complications. However whenever I press "Skapa Konto", It loads and

Selenium needs a sleep before going to the next page

南笙酒味 提交于 2019-12-20 04:50:22
问题 I am currently learning Selenium, and I learned a lot. One thing the community said; is that you need avoiding thread.sleep as much as possible. Selenium uses implicit and explicit waits in replace. Yes, I understand that concept. Recently I cam across a problem. This is that without a certain action; going from the login page to another page, without the use of a Thread.sleep(1000). Selenium seems too crash: that it can't find a certain element. I find this behaviour strange. So I was

Element “id” changes(not static) in some web pages when inspecting elements during test automation using Selenium. How to handle this situation?

不羁岁月 提交于 2019-12-20 03:39:10
问题 I am trying to capture a drop-menu field using test automation in SELENIUM with chrome driver. Why does the element "id" changes in some web pages when inspecting elements time to time, with Chrome browser? How to keep the "id"s static, without changing? Steps I followed: When I inspect elements in the web page, the particular drop-menu shows its "id" as: id="combo-1782-inputEl" HTML: <input id="combo-1782-inputEl**" type="text" class="x-form-field x-form-required-field x-form-text x-trigger

Selenium can't locate iframe

女生的网名这么多〃 提交于 2019-12-19 11:39:16
问题 Selenium fails to locate the iframe by ID and Name . This is for an automated checkout test on Shopify. The specific issue lies within the payment field. I found the ID and name of the iframe , which is card-fields-number-b1kh6njydiv00000 . iframe Image: Text Field Image: Code trials: driver.switchTo().frame("card-fields-number-b1kh6njydiv00000"); System.out.println("Found iframe"); The error is: org.openqa.selenium.NoSuchFrameException: No frame element found by name or id card-fields-number

Selenium can't find element, but element is on the https://login.aliexpress.com/ webpage

。_饼干妹妹 提交于 2019-12-19 10:31:48
问题 On the website the selenium script cannot find the login and password fields. I tried to search by xpath, css selector, name and class name. But nothing worked. from selenium import webdriver from time import sleep driver = webdriver.Firefox() driver.get("https://login.aliexpress.com/") driver.find_element_by_id("fm-login-id").send_keys("test_id") driver.find_element_by_id("fm-login-password").clear() driver.find_element_by_id("fm-login-password").send_keys("test_pass") driver.find_element_by

How to extract all the texts from <a> tag using Selenium through Python

雨燕双飞 提交于 2019-12-18 09:53:44
问题 Here is the link of website from where I want to extract data, I'm trying to get all text of href attribute under anchor tag. Here is the sample html: <div id="borderForGrid" class="border"> <h5 class=""> <a href="/products/product-details/?prod=30AD">A/D TC-55 SEALER</a> </h5> <div id="borderForGrid" class="border"> <h5 class=""> <a href="/products/product-details/?prod=P380">Carbocrylic 3356-1</a> </h5> I want to extract all text values like ['A/D TC-55 SEALER','Carbocrylic 3356-1'] . I

How to extract all the texts from <a> tag using Selenium through Python

筅森魡賤 提交于 2019-12-18 09:52:29
问题 Here is the link of website from where I want to extract data, I'm trying to get all text of href attribute under anchor tag. Here is the sample html: <div id="borderForGrid" class="border"> <h5 class=""> <a href="/products/product-details/?prod=30AD">A/D TC-55 SEALER</a> </h5> <div id="borderForGrid" class="border"> <h5 class=""> <a href="/products/product-details/?prod=P380">Carbocrylic 3356-1</a> </h5> I want to extract all text values like ['A/D TC-55 SEALER','Carbocrylic 3356-1'] . I