How to apply multiple conditional statements in selenium webdriver python
I am fairly new to Selenium, I am trying to find a Contact info element in a page, and click it if it exists. Many times, what happens is, the element is in all caps such as CONTACT, sometimes Contact...
View ArticleDoes Python has @FindBys as Java?
Any similar function available in Python-selenium for @FindBys as below ? Java-Selenium:@FindBys({@findby(), @findby()}) @FindBys - it means when the required WebElement objects need to match all of...
View ArticleScrape CrawlSpider AttributeError '_rules'
I'm trying to scrape the website of a prominent UK retailer but I am facing an issue with my CrawlSpider - I get the following error message:AttributeError: 'NlCrawlerSpider' object has no attribute...
View ArticleHow can I check if an element exists on a page using Selenium XPath?
I'm writing a script in to do some webscraping on my Firebase for a few select users. After accessing the events page for a user, I want to check for the condition that no events have been logged by...
View ArticleSelenium webdriver with proxy not working python
I am trying to run this simple script which uses selenium and chromedriver with a proxy.from selenium.webdriver.chrome.options import Options import time proxy = "209.97.177.59:8080" chromepath =...
View ArticlePassing a variable in Selenium Xpath
I am trying to pass a variable in Xpath but it is not capturing it .The Country is captured in query using speech recognisation My Code ::** while True: query = command().lower() Country = ['Germany',...
View ArticleHow to correctly use selenium with Firefox?
I am trying to make selenium work with Firefox 71.00 x64 en-US, the code I am entering is: from selenium import webdriver browser = webdriver.Firefox() but the browser doesn't start and I keep getting...
View ArticleLogin using Selenium Python?
I cannot login to this site.This is the url. https://swayam.gov.in/azurelogin?continue=/What I tried:from selenium import webdriver driver = webdriver.Chrome()...
View ArticleI have got problem clicking on hidden element
I have got a problem with my code because I am not able to click on a hidden element can someone help me?The first picture is while hovering over and second it without hover# webdriver browser =...
View ArticleHow to extract tr table row values using Selenium from a hidden chart?...
This is the source I want to scrape data from https://www.fxstreet.com/economic-calendar/world-interest-ratesWhen you click on each bank's name, a chart would pops up and there are table rows and data...
View ArticleClass for easy generation of xpaths
I would like to write a class for generating xpaths. The class should have 2 methods: down(String string) and child(String string).I would like to use the class like...
View ArticleSelenium block requests, scripts before page loaded
I am trying to block some requests for example; gAnalytics or gMaps and so on. I used BrowserMobProxy before but for now, I am using the Tor network as my proxy. Anyway, What I need to do is block some...
View ArticleHow to type a text with Android Keyboard with Appium and Python?
IntroductionI am developing a script in Python 3.7 using Appium. It will automate some task on a Real Android smartphone. My script need to type some text in textfield. I don't want to use send_keys...
View ArticleMultiple websites scraping with BeautifulSoup and Selenium
I'm trying to scrape multiple e-commerce websites with BeautifulSoup and Selenium. I use the CSS Selector of search box in that websites and search for a word then try to scrape related data with...
View ArticleHow can I find my site in the first 5 search results and follow the link
I tried the below code, but it's not correct exactly. How can I find my site in the first 5 search results and follow the link?from selenium import webdriver from selenium.webdriver.common.keys import...
View ArticleSelenium and BeautifulSoup - Trying to scrape content from page 1 THEN go to...
I am having a hard time understanding how to grab all of the pages content that I want. I am able to grab the information I want from page 1 but getting the next 15 pages is the challenge.I am using...
View ArticleSelenium interacting with: your connection is not private
I'm trying to interact with the page "Your connection is not private".The solution of using options.add_argument('--ignore-certificate-errors') is not helpful for two reasons:I'm using an already open...
View ArticleFind the reCAPTCHA element and click on it -- Python + Selenium
I need some help. There is URL: https://www.inipec.gov.it/cerca-pec/-/pecs/companies. I need to click checkbox Captcha: My code is look like:import os, urllib.request, requests, datetime, time, random,...
View ArticleHow to handle session timeout popup middle of test execution of web...
While doing automation testing, if the execution takes time then web application session time is expiring. The session timeout popup is geting scanned, which is an error scenario. Please tell me how to...
View ArticleHow to grab website response using selenium and webdriver?
how to extract websites response? I'm using Firefox web driver with selenium and just trying to get websites response, but i didn't make it. its seems there is no way to do that automatically if you...
View Article