For days, I've been attempting to set up headless chrome without any luck. It's frustrating not knowing what's causing the issue!! I've exhaustively searched through forums and tried every solution mentioned. Currently, I'm using this code snippet (direct ...
For my current project working with Python 3.6.3, bs4, and Selenium 3.8 on Win10, I am faced with the task of scraping pages that contain dynamic content. Specifically, I need to extract numbers and text from websites like . It seems using requests+beautif ...
import pandas as pd import geocoder from selenium import webdriver import csv g = geocoder.ip('me') print(g.latlng) driver = webdriver.Chrome(executable_path=r'D:chromedriver.exe') driver.get("https://prisguiden.no/kategorier/mobiltelefon") variant = d ...
I have been experimenting with different waiting options, but I am unable to click the button. It seems like the AJAX is taking time to load the page. How can I create a function to wait for AJAX and use it in other methods when needed? for (int row = 1; ...
My Android emulator and Appium test are running smoothly. The app launches the correct Activity and enters text into a specific field without any issues. However, when I attempt to locate the same text field in order to verify its content, I receive an err ...
While working with Selenium Webdriver and Java, I encountered an error stating "The system cannot find the path specified" Here is the code snippet: package test; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileReader; i ...
After extensive research on this issue, I have yet to come across any viable solutions. My current project involves writing a script using Selenium to automate logging into a specific website. However, my efforts are being hindered by a certificate warning ...
Currently, I am in the process of developing an Automated Acceptance Test utilizing Python Selenium to populate a web form and verify any errors displayed on the webpage. Following that, I compare these errors with my anticipated outcomes to generate eithe ...
I'm having trouble selecting an element on the minehut.com webpage that doesn't have an ID. Despite trying CSS Selectors, I haven't had any success. The element I want to select is: <button _ngcontent-c17 color="Primary" mat-raised-button class="mat ...
I'm currently dealing with an authentication pop-up in one of my new Webdriver scripts. While I have a solution that works for Internet Explorer, I'm facing some challenges with Chrome. The approach for IE was straightforward - following the guid ...
Have you ever experienced a bot sending messages to numbers from a text file, only to run into an alert that needs confirmation when switching to another person? It's quite a predicament because the code doesn't progress beyond waiting for the page to load ...
Below is the html code that I am currently working with: <html> <body> <table> <tr> <tr> <tr> <tr> <tr> <td>Color Digest </td> <td>AgArAQI ...
Can DIV elements be clicked using selenium Web Driver? For example, I'm having trouble clicking the delete button in Gmail. https://i.stack.imgur.com/zsyio.png I've been trying to locate the element using the XPATH = //div[@aria-label='Delete'] https:/ ...
I'm in the process of creating a Dockerfile to run a Ruby Capybara scraper within a docker container. The code I've tested works fine on my host OS, but it's throwing an error when executed within the docker container. Dockerfile FROM ruby:2.6.6 RUN apt- ...
Trying to understand Jenkins has been a challenge for me. Despite the success of building and running my suite of selenium tests in Eclipse and through the command line with ant, I encounter failures when attempting to use Jenkins. Interestingly, the conso ...
When it comes to testing webpages with xml responses, using Selenium IDE can be a challenge. While some opt for Selenium Remote Control or Pearl modules like WWW::Mechanize and Test::XML/Test::XPath, these may not be feasible options for those who prefer J ...
Looking for some assistance! I'm having trouble clicking on the 'Sign Out' button, here is a screenshot from Firebug: <li class="dropdown open"> <a class="dropdown-toggle" aria-expanded="true" aria-haspopup="true" role="button" data-toggle="dropd ...
Currently, I am utilizing Selenium Automation with Java for my test automation requirements. For reporting purposes, TestNG is the tool I have been using so far. Previously, no integration was established with any tool for reporting, therefore I would man ...
I'm facing an issue with getting selenium to make requests through a proxy server, as it doesn't seem to be working properly. Although this code gets a response, it's not utilizing the proxy settings: Selenium::WebDriver.logger.level = :info proxy = Sele ...
As I dive into the world of web automation using Selenium with Python, I encounter some challenges when trying to log in to a specific website for the first time. Despite practicing with simple examples and going through the Selenium documentation, things ...
I'm currently facing a challenge in writing a Python script using Selenium to interact with a webpage. I am struggling to use the .click() method to select an expandable list on the page. Despite successfully logging in and navigating to the desired page, ...
Here is a link for practicing sorting: I attempted the sorting with the following code: Actions action = new Actions(driver); List<WebElement> elements = driver.findElements(By.xpath("//*[@id="demo-tabpane-list"]/div/div")); fo ...
I am facing an issue while trying to run 'ng e2e'. The error message I encounter is as follows: WebDriverError: unknown error: cannot find Chrome binary I am using Protractor which is pre-installed with Angular CLI. Despite reinstalling ChromeDriver and ...
After dedicating a significant amount of time to research without finding a suitable solution, I turned to StackOverflow for help. I have been using Selenium Webdriver to automate testing on various browsers. However, recently I encountered issues with ol ...
For the purpose of a POC, I have set up a Windows Server 2012R2 machine with Jenkins installed to run Selenium UI tests using msunit. However, during the CI build process (compilation and test execution) on the server where Jenkins is running, I am unable ...
Attempting to create a basic selenium script to navigate and interact with links on a specific website. Here is an example of the script: from selenium import webdriver import time chrome_options = webdriver.ChromeOptions() chrome_options.add_argument(&qu ...
I am tasked with automating a WebTable that is embedded in the WebPage. The table contains numerous fields, causing it to have its own horizontal scrollbar separate from the rest of the WebPage. As a result, when attempting to interact or click on elements ...
My attempts to access the following website were unsuccessful: https://www.google.com/recaptcha/api2/demo I tried clicking on this button: https://i.stack.imgur.com/0q229.png Then, I attempted to click on this button: https://i.stack.imgur.com/LvTjG.pn ...
I have a collection of text files (.txt) that contain saved web pages, specifically public profile pages from a social media platform. I am interested in measuring the amount of content on these profiles, but simply converting the files to .html and viewin ...
I am currently facing a challenge where I extract text from a website and then need to use it in a loop to continuously click on elements based on that variable. The code I have written only loops for 5 times, but the desired behavior is to click on elemen ...
Encountering the same issue with every test script I attempt to create using selenium + TestNG. After the first @test method, webdriver fails to identify elements in the following @test methods. Illustratively, consider the scenario: The web driver loads ...
When I log in to Instagram, I try to search for "tanishq" in the search box but it doesn't work WebDriverWait wait = new WebDriverWait(driver, 10); WebElement search = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//div[@class='eyXLr wUA ...
This particular snippet of code functions properly when used in the regular version of Google Chrome: from selenium import webdriver from time import sleep def login(email, password): with webdriver.Chrome('/path/to/chromedriver') as drive ...
I'm currently using Selenium with Firefox webdriver and encountering an exception when trying to create my webdriver instance. WebDriver driver; driver = new FirefoxDriver(); The strange thing is that the code was working fine before, but now it&apo ...
Recently, I've been delving into the world of creating web scrapers using Selenium. One particular challenge I'm encountering involves scraping pages with pagination. I put together a script with high hopes of successfully scraping every page. fr ...
As I attempt to upload a JPG image onto a website using the designated button, here is the HTML code provided: https://i.stack.imgur.com/6o4ly.png I have attempted the following code, but unfortunately, it does not seem to be functioning correctly: PHOTO_ ...
Attempting to utilize an Android driver within Selenium has presented a perplexing error that leaves me stumped. I have both an operational Appium Server and an active Android Emulator (from Android Studio) identified as "emulator-5554" when queried with " ...
Currently I am engaged in test automation utilizing a Selenium-based Automation framework. My current task involves sending HTTP requests to establish an API suite. The next challenge lies in posting a URL that is embedded within a text/event-stream forma ...
Looking to count the characters with a specific background color. I am currently traversing through all the HTML nodes using this method: Counting inner text letters of HTML element Example HTML Page: <span style="background-color: #ffff00;"> ...
Looking to leverage a dropdown calendar feature with Selenium automation. Using Python as the scripting Language, and still getting familiar with Selenium. ...
I am facing an issue with using @BeforeSuite after the instantiation of WebDriver in Arquillian. Below is an example: @RunAsClient public class GoogleTest extends Arquillian { @Drone private WebDriver driver; @ArquillianResource private ...
Following my successful login code for gmail through webdriver, I attempted to implement the logout functionality using the code below, but unfortunately encountered an error: // To open the account menu where the sign out button is located driver.findEle ...
Html: <div id="js-cert-file" class="form-group"> <button id="js-ob-browse-n-upload" class="btn btn-ob browse-and-upload-onboarding-ssl-button" style=""> BROWSE & UPLOAD </button> <input id="js-cert-file" class="hidden btn btn-ob" ...
In need of assistance to assert a value that appears in the text field labeled blNo. Struggling with using a proper assert method, any suggestions would be greatly appreciated. ...
When using unittest in Python3, I attempted the following code: import unittest from selenium import webdriver def setupModule(): driver = webdriver.Firefox driver.maximize_window() driver.get('www.google.com') def teardownModule() ...
In the process of developing a simple script that selects a random code from your Discord 2FA backup code text file, inserts it into the 2fa box, and submits it during login. The bot can already enter your email and password to log in initially and choose ...
I need to achieve two specific tasks with Selenium-Webdriver: hiding the console that pops up and specifying a custom path for the driver's location and version. Unfortunately, I couldn't find a constructor that can handle both a string for the directory ...
Currently, I am utilizing the Selenium library in Python to execute a code that emulates typical human actions on Instagram. However, this particular action seems to be unattainable, almost as if Instagram has prohibited it altogether. I am attempting to ...
I am a beginner with the Katalon Studio tool and trying to dynamically add GlobalVariables by inputting both the variable name and value. I have found a piece of code that should help me achieve this, but I am struggling to understand it as it utilizes met ...
I am attempting to switch between two tabs and came across the following code snippet: ArrayList<String> tabs2 = new ArrayList<String> (page.getWindowHandles()); System.out.println(tabs2.size()); page.switchTo().window(tabs2.get( ...
Hey there, this is my first post on Stack so please go easy on me if I make a mistake. I've been using selenium and Java for some automated testing. Everything was going smoothly until I encountered an issue with setting the value of a hidden input. ...
When attempting to log in, I need to enter a username and password. If the "I Agree" element is not displayed or the "admin header" element is displayed, I want to click on the admin element. However, my code currently only checks if the "I Agree" elemen ...
Can Chromedriver-autoinstaller be utilized behind a firewall? Alternatively, are there more effective solutions for managing ChromeDriver while operating behind a firewall? ...
When filling a date in a text box using Python 3.9.5 and Selenium 4.1.0 with Microsoft Edge 98.0.1108.43 on Windows 10, I utilize the following code: #element is the web element I want to fill element = "element_name" date = driver.find_element(B ...
I am faced with a challenge in running a Java project that utilizes the page factory and page object model. I have successfully run it on Chrome and IE, but running it on Firefox has proved to be difficult. The browser does not open and I encounter the fol ...
I encountered an issue while running a functional test that involves opening a Firefox browser with Selenium. Despite trying to troubleshoot by updating Selenium and re-installing Firefox, the error message persists. Here's the detailed error message ...
I am currently navigating my way through Selenium and attempting to create my inaugural script using the Python package. My setup includes: Operating System: Windows 10 Python Version: 3.10.5 Selenium Version: 4.3.0 Up until now, I have managed to accom ...
I am having an issue where the calendar display is showing dates from the current date to the next upcoming date. However, I need to select the current date every time I run the script. This is how the calendar looks like: I attempted to solve this issue ...
System Information: Operating System: Centos 7 Browser: GOOGLE CHROME V61 Automation Tool: SELENIUM WEBDRIVER 3.5.3 Driver: ChromeDriver 2.30/2.32 Attempted to run Google Chrome manually inside Jenkins slave environment google-chrome --no-sandbox --dis ...
I have been troubleshooting this issue for the past few days with no luck :( Is there anyone who can offer assistance? The problem I'm facing is that when selenium clicks "show more" on a specific city in the meetup website, it loads but nothing displ ...
I'm facing an issue while attempting to download images from Tumblr using Java Selenium. After extracting the image URL from the source and downloading the images, I noticed that they are in unsupported formats and are smaller than expected. Can someone pr ...
struggling to pinpoint the exact location of the "item1" div tag within the DOM structure below. Despite trying various methods, I have not been successful in my attempts.
Greetings, I am in the process of learning Selenium Webdriver on Eclipse IDE using Java Language. I have come across an element with the following ID: <button role="tab" id="tabs-id_1-link-1" class="c-tabs__link is-active" aria-selected="true" aria-con ...
Hi there, I'm having some trouble with my Selenium Python regression test script. My HTMLTestRunner isn't working as expected for generating the test report, so I decided to give the Nose plugin a try instead. I've gone ahead and installed Nose, as well a ...
Currently, I am running apache-airflow locally using docker. However, I encountered an issue when trying to import selenium into one of my dags that involves web scraping data on a regular basis. Despite running the pip install command in the console and r ...
I am encountering an issue while trying to download this file: Residential Product Guide & Rate Sheets Residential Rate Sheet -> Click on the download button next to it When I download without using headless mode, everything works perfectly fine ...
I have successfully used selenium to scrape data from tradingview and display it on the screen. However, I am having trouble figuring out how to pass this data to Beautiful Soup for further processing. It seems like printing to a csv file using selenium is ...
I'm currently facing an unusual problem with selenium. The following ruby code snippet: page.all(:xpath, "//table[3]//tr[last()]//td") Successfully retrieves all the cells of the last row from the third table on a webpage. In contrast, this python code ...
When utilizing BeautifulSoup with Selenium, I usually start by parsing the entire page using soup = BeautifulSoup(driver.page_source). But what if I only want to parse a specific element from Selenium in BeautifulSoup? If you try the following code snipp ...
I'm currently working on an automation project and facing a challenge with clicking this button using a selector. <button id="ember2570" class="ember-view btn btn-default btn btn-default" type="button"> <i class="fa fa-upload"></i&g ...
Looking for a solution to upload a file by clicking on an element: <a class="gray_box" href="#">Choose world folder<span>Select the world folder, we'll do the rest</span></a> The issue arises when the file manag ...
As a new user of Selenium, I am attempting to transfer some content from one page to another. The original page allows for automatic copying by simply clicking on the text once. However, I am encountering an issue where nothing is being copied and I can' ...
Let's consider an example scenario: In my application, there is a username field where the username is passed through a dataProvider. For instance, if I send the username as "[email protected]" During parallel test execution, the data prov ...
Lately, I've been working on extracting a large amount of pricing data from a website by starting with one page that contains links to each item's individual page. My goal was to automate the process using a script that would click on a specific ...
Recently, I started learning Python. To practice what I have learned so far, I decided to create a new Python project using PyCharm. However, when I tried running my simple program, I encountered the following error. "C:\D drive\Workspace\P ...