Using aria-label to locate and click an element with Python3 and Selenium
I want to click or more respectively, expand the "Any time" button. I've tried to locate the element by class_name and xpath. The problem is that the class and xpath are the same for all three...
View ArticleHow to Find an Element to Click on Instagram Unfollow Button
I am making an Instagram bot using selenium and python. I am trying to implement a function which allows a certain amount of followers to be unfollowed. The code navigates to the unfollow screen which...
View ArticleSelenium - Called method inside another class, but cannot re-use driver
I have two different classes: "AddTeam.java" and "Login.java".Login.java has something similar to this:public class Login { static WebDriver driver; public static void loginMethod () throws IOException...
View ArticleInheritance in selenium webdriver using testng
package user; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.Test; import...
View ArticleExtracting text from a Python span tag
I'm doing the selenium robot, I need to extract information from the page after the robot does a search, but I'm having trouble.I have the HTML in the following imageImage-hereI want to extract the...
View ArticleSubmit recaptcha with 2recaptcha
How do I know what the callback function is in recaptcha?I'm using the 2Captcha service and I even asked something similar here, and I was told that I needed to use the callback function to send the...
View ArticleHow to Skip a Webpage After a Period of Time Selenium
I am parsing a file with a ton of colleges. Selenium googles "Admissions " + college_name then clicks the first link and gets some data from each page. The issue is that the list of college names I am...
View Articleselenium use but browser detect selenium
i use selenium with python on win 7 64 bit i have script to login me automated on my using webpages i used for work. But the browser detect and the websites knows i use selenium and they dont let me...
View ArticleHow to solve GeeTest? Python + Selenium
I am working on a program where I need to access a website, however the problem is how will I solve geetest to finish my login. I am using Python + Selenium. I even found this site:...
View ArticlePython/Selenium - Can't get HREF value of a tag
So I have this HTML element:<h2 class="post-title"> <a href="http://google.com" rel="bookmark">This a link to Google!</a> </h2> I am using...
View ArticleHow do you find an data-auto-id
Our Devs are using data-auto-id within the latest projectmakes my scripting hard andselenium does not recognise it as an ID unfortunately.Can anyone tell me how in my POM i can identify data-auto-id...
View ArticleAutomation testing using wd library
I am working with wd library for automation testing that includes mocha as well.Here is my coderequire('colors'); var chai = require("chai"); var chaiAsPromised = require("chai-as-promised");...
View ArticlePython Selenium 4 - Firefox FirefoxBinary() Deprecated
I have upgraded to Selenium 4new_binary_path = FirefoxBinary('path_to_binary') selenium.webdriver.Firefox(executable_path=path, options=ops, firefox_binary=new_binary_path)...
View ArticleHow to handle filter box that appears while using selenium python?
I go to a web page in chrome using selenium python. After going to a page ,I click on an item called "search". As I click on it a filterbox appears as belowWhat should I do to click on restrict by date...
View ArticleScraping Javascript rendered elements of a webpage in Selenium
I am looking to scrape the data that feeds the SVG elements of this page:https://www.beinsports.com/au/livescores/match-center/2019/23/1074885The page appears to be Javascript rendered, so traditional...
View ArticleValueError: Cannot convert to Excel - Scrapper in Python
That's my first project in python, and i cant get the result of a research in a ASPX website and put then into a XLSX file, can someone help me?That`s my code:import time from selenium import webdriver...
View ArticleSelenium Jmeter differences on websocket calls
I am researching the differences between Selenium and JMeter and I stumbled across the following statement about Selenium:Even though WebSocket might be encapsulated into a web session and affect the...
View ArticleProblem with IF validating XPATH in Python with Selenium
Im trying to scrape one ASPX form, and i`m having difficulties on make one IF for select different types os results, i have blank results first and data results second.How do i make one IF to validate...
View ArticleDownload a file after autentication, of five options. Selenium
I am trying to download a file after a login, so far the program enters the url and enters the user data and password, the problem is when I try to download the file of the five available options (I...
View ArticleImportError: cannot import name 'webdriver' - no Selenium.py file
I am getting an issue in my code with webdriver not being imported. I am using selenium and have already made sure the path is correct. I do not have any file named 'selenium.py' or 'selenium.pyc' that...
View Article