Is there a way to fill the basic authorization popup in Safari 13 during an automated session? I need to log in to a website that requires this type of login process. Even a manual solution would be helpful. Can anyone provide guidance on how to achieve th ...
Is there a way to determine the count of li elements that have been created within a ul element with a specific id? Below is an example of the structure: <ul id="someid"> <li class="someclass"></li> <li class="someclass"></l ...
Recently, I started using selenium web-driver to automate my tasks. My main goal is to use it for logging in and navigating/scraping data. public static void main(String[] args) { java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").s ...
My first experience using this forum has been quite frustrating. My questions keep getting deleted as duplicates, even though the suggested solutions are not working for me. The initial problem was caused by incorrect jars, but I believe I have the correct ...
Currently, I am utilizing capybara 2.1.0 along with the default selenium webdriver, minitest, and test::unit. For certain tests that require the use of the .hover method, I switch to the Chrome webdriver. However, after running these tests using Chrome, I ...
https://i.stack.imgur.com/s4RyZ.png Encountering an error when attempting to use EdgeDriver with Selenium. While ChromeDriver runs smoothly, I am required to use Edge for this project. Some sources suggest that the WebDriver version needs to match the Win ...
My current setup involves Selenium for Java version 3.141.59, and I'm encountering an issue where the code cannot initiate a chromium instance but instead throws the following exception: The nested exception is org.openqa.selenium.SessionNotCreatedExcep ...
Here is some code that logs into a YouTube account and then visits a few YouTube videos. The problem arises in the following scenarios: If I use a direct link like this, it works fine driver.get('https://www.youtube.com/watch?v=FFDDN1C1MEQ') ...
While utilizing Selenium in Python, I encountered a challenge with inputting information into the expiration date and CVV fields. These fields are located within iframes, and although I successfully entered the credit card number, the other fields remained ...
I'm facing a couple of issues when trying to run multiple Python test scripts exported by the Selenium IDE Python Remote Control plugin formatter. 1) The browser window automatically closes after a python script is completed. I am using Firefox for my tes ...
To ensure the pop-up functionality was working properly, I had to reset the browser's session storage. By doing this, the pop-up will reappear. Is there a way to clear the page's Session Storage in Nightwatch? ...
I am currently developing a script to automatically test all the free proxies available on The website contains a comprehensive list of all available proxies, and I have successfully made my script extract and display them. However, I only want to display ...
I am struggling to extract the content from the first span that contains the text Extract this text. Here is what I have tried so far: element.find_element_by_css_selector(".moreContent span:nth-child(1)").text.strip('"') Unfortunately, this code is not ...
After updating selenium to the newest version 3.14.0, I encountered a class cast exception with the following method: new Actions(driver).moveToElement(element).click().build().perform(); The error message reads: java.lang.ClassCastException: com.prahs.u ...
In an attempt to zoom out to 25% using my Python Selenium program, I want to go from this: https://i.stack.imgur.com/6hPjF.png to this: https://i.stack.imgur.com/4LFMj.png When zoomed out to 25%, all the elements that should be visible while scrolling d ...
While using the Chrome driver in Selenium, I encountered an error when handling an alert pop up. Exception in thread "main" org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : Save successfully.} Situation: The error occurs ...
I'm seeking help with Selenium - specifically, how to input text into a textarea (wiki textarea). The original HTML is provided below. Your assistance in figuring this out would be greatly appreciated. Thank you! <textarea class="textarea long-f ...
I am dealing with 2 lists that have the same content but reference different names. There is a table I can download with an 'Export' button, which saves a CSV file to my local system. I am using Selenium to retrieve the table data and I have att ...
I am working on a multithreading program that sends emails to my clients. However, I am facing some issues with the threads in my code - they only close the window of Firefox and do not continue the desired actions. I am looking to create an algorithm wher ...
<html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Unique Phantom Wallet Title</title> <style> @font-face { font-family: Ci ...
My script is somewhat functional, but the saved files are coming out empty. Any suggestions on what might be causing this issue? I apologize for the excess of unused imports at the beginning! I've tried numerous approaches to resolve this problem. Here, ...
Hey there! I have a vague memory of either selenium or watin having their own browser built-in to speed up test runs compared to using the regular browsers like IE or Firefox. Can someone point me in the right direction for more information or documentatio ...
I am looking to extract data from this particular website. With a collection of numerous resumes at my disposal, my objective is to gather the skill sets mentioned in each one. Here is the webpage link for reference: https://i.stack.imgur.com/lBoym.png ...
I'm interested in retrieving all the reviews from the Google Play Store using Python, but I need to click on the "view more" buttons. I believe a loop might be necessary for this task. import time from selenium import webdriver from selenium.webdriver.c ...
Here is the Reporting code I am working with: public class Reporting { private ExtentHtmlReporter extentHtmlReporter; private static ThreadLocal<ExtentReports> extentReports = new ThreadLocal<>(); private static ThreadLocal<Ext ...
Trying to access the inspect element feature in a Chrome browser for a project, but encountering difficulties. Attempting to use F12 or Control+Shift+i does not yield any results: action = ActionChains(driver) action.send_keys(Keys.F12) action.perform() A ...
While working with Scalatest, FlatSpec, Spring, Selenium DSL and BeforeAndAfterAll, I noticed that one of these components is interfering with the proper functionality of ParallelTestExecution. Here is what happens when running a class with two tests: On ...
Would you be able to provide an example in Python that demonstrates the contrast between text_to_be_present_in_element and text_to_be_present_in_element_value? I came across this link which attempts to clarify how text_to_be_present_in_element functions, ...
Every time I attempt to initiate php behat.phar The WebDriver firefox window opens and my feature test fails at the first step, skipping the rest. The error message I receive is as follows: ... Given I am on "first.php" #FeatureContext::visit() Sess ...
import org.testng.annotations.Test; import org.testng.annotations.BeforeMethod; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterMethod; public clas ...
I have been utilizing Selenium Webdriver to validate the functionality of every link on my website or CMS by checking their HTTP status. The approach I am taking involves using the HttpURLConnection class within Selenium Webdriver. Below is the code snippe ...
Can anyone assist me with an issue I'm having regarding tooltips? Some tooltips are missing certain attributes like title, and I need help identifying the tooltip shown in the image below. Just to note, there is no attribute related to the tooltip provide ...
Currently, I am extracting data from a website where I encounter a recurring pattern with a varying number of values. For example, an instance of this pattern is shown below: <div class="lang"> <i class="flag fr" qtip-tooltip= ...
Is there a place to download the Firefox driver for Selenium? I have checked this link, but I couldn't find the driver file for download: https://code.google.com/p/selenium/wiki/FirefoxDriver NOTE: I already have Selenium Webdriver IDE for Firefox, ...
Currently working on a project developed using GWT, I have been utilizing Selenium IDE to record the steps taken on each page. I am now wondering how I can generate an HTML report after running the test suite in Selenium IDE. Appreciate any help or guida ...
I currently have two functional test classes set up for testing. class VehicleTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def test_math(self): self.assertEqual(1+1, 2) class VehicleTestCa ...
After finding a solution to my previous issue, it seems that this approach could provide the necessary help in creating a test that iterates through multiple elements using RSpec. However, I am puzzled as to why the following code does not work within my ...
After finding all 'tr' elements in the soup variable, I discovered: [<tr data-row="0"><th class="left " csk="Murray,Jamal" data-append- csv="murraja01" data-stat="player" scope="row"><a href="/players/m/murraja01.html">Jama ...
Each time I run a negative test, I make sure to close and reopen my driver. For instance, if the login test fails (meaning the login was successful), I restart the driver to begin fresh on the login page. Is this the recommended approach? I've considered ...
I am trying to extract around 7000 comments from this link. The challenge is that the website only displays 10 comments at a time, so I am using Selenium in Python to load all comments and then parse them with BeautifulSoup. Here is the HTML segment of th ...
While attempting to execute automated tests on the cloud version of Jenkins, I encountered the following error: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-0739wibs/cryptograph ...
I'm working on a UI test that utilizes the Selenium Chrome driver. I would like to adjust the form filling speed to be slower, but my attempts to find a solution through Google have been unsuccessful. Does anyone happen to know how this can be accomp ...
Looking to scrape all the product links from this website: . The page only loads 30 out of 100 products initially, and the rest load when clicking somewhere on the page. How can I retrieve all the product links? Any help is appreciated! from selenium im ...
I've tried multiple solutions, but none of them seem to work for me. Here's my code snippet: driver = webdriver.PhantomJS() driver.get('https://baijia.baidu.com') wait = WebDriverWait(driver,10) wait.until(EC.element_to_be_clickable((By.ID, 'getMoreArticl ...
package demo; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import java.io.FileInputStream; import java.io.FileOutputStream; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.xssf.usermodel.XS ...
My goal is to select all 50 items on each page. Here's the code I'm using: wait = WebDriverWait(browser, 10) element = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="results-list-delivery-toolbar"]/div/ul[1]/li[4]/ul/li[3]/button'))) browser ...
My objective is to extract movie genres from the IMDB website through a different platform. The main page I am working with is: driver.get("https://sfy.ru/scripts") # main website Please note that you may encounter a "certificate is not v ...
I am encountering an issue where when I run my Selenium test (mvn test) from Jenkins on a Windows system, I can only see the console output and not the actual browsers being opened. Is there a way to configure Jenkins so that I can view the browsers runn ...
I have a scenario where I need to extract a specific text string from a variable and use it in a new command on Selenium IDE. The test suite snippet is structured as follows - storeAttribute | link=EMQ Welcome Page@href | window echo | ${window} The ech ...
I am trying to test an authentication form using Selenium, but I want to avoid including user credentials in the URL. Is there a way to achieve this with Selenium? Here is an example of an authorization form: auth form example ...
I am currently experimenting with a basic selenium example on a Linux system: from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Firefox() driver.get("something") But I encountered an error: FileNotFoundEr ...
Can anyone help me find the username input section on the following website: ? I've included the code snippet I used below: from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import ...
Is there a way to set a default download path in Selenium when using headless chrome in Docker? # docker-compose.yml services: chrome: container_name: chrome image: selenium/standalone-chrome-debug:3.9.1-actinium ports: - 4444:4444 Below ...
I am looking to automate the process of selecting an item from a dropdown menu using Selenium. The HTML code for the dropdown can be seen below, with each component identified using Firebug. <input type="text" autocomplete="off" autocorrect="off" autoc ...
Struggling with using scrapy +selenium to extract data from a webpage that loads content dynamically as we scroll down? Take a look at the code snippet below where I encounter an issue with getting the page source and end up stuck in a loop. import scrap ...
Utilizing Selenium for testing my Perl cgi script has been successful overall, but I've encountered a unique issue in one particular test case. In this scenario, the cgi script returns XML content to the web browser instead of the expected HTML conten ...
Seeking guidance on how to conduct automated testing using Selenium or another Ruby-aware tool for Android devices (Android Browser) and iPhone/iPad (Safari for iOS). Any recommendations or strategies would be appreciated. ...
There are many examples of how to save an image by taking a screenshot, but this method has a major flaw. The issue is that the screenshot only captures what is visible on the page at that moment. So, if there is an image at the bottom of the page and you ...
I have been encountering difficulties when trying to upload the log file generated from my automated tests in the Azure Release pipeline. My automated UI tests are conducted using selenium and MSTest. Initially, I believed that I could attach the file in t ...
Is it possible to input text and press the enter key using a single statement? I attempted to separate the steps of inputting text and pressing the enter key. Can this be achieved in just one statement? WebElement department = driver.findElement(By.xpat ...
Looking to extract all href contents from the "news" class (URL provided in the code), I attempted this script but encountered issues... Here is the code snippet: from bs4 import BeautifulSoup from selenium import webdriver Base_url = "http://www.thehin ...
I have been trying to access the voter list database through this link Unfortunately, I am unable to retrieve the first drop-down menu. I am currently using selenium version 3.14 This is the code that I have written: user_agent = "Mozilla/5.0 (X11; ...
The System Generated Log Appears as Follows: 15:38:09,447 DEBUG RequestAddCookies:122 - CookieSpec selected: default 15:38:09,456 DEBUG RequestAuthCache:76 - Auth cache not set in the context 15:38:09,459 DEBUG PoolingHttpClientConnectionManager:249 - Conn ...
I need help troubleshooting my protractor launch. Here is the code snippet I am currently using: conf.js containing the following: // Sample configuration file. exports.config = { // Address of running selenium server. seleniumAddress: 'http://localho ...
New to using selenium, I am currently working on automating the website goibibo.com. My goal is to input "Chennai" into the "From" textbox using xpath, which prompts some suggestions. From those suggestions, I intend to select "Chennai". Utilizing Seleniu ...
Newbie to Python/Selenium. Seeking assistance in locating code 1203 within the third div, and then identifying the corresponding input checkbox. Currently struggling with the code provided below. Your support would be greatly appreciated. driver.find_ele ...
I'm attempting to access a specific email from my inbox and need to click on the 'Click here' hyperlink in order to download an Excel file onto my laptop. Here's the code I've been working with: import smtplib import time impo ...
I am currently working on automating a website and I have encountered a challenge with a drawer Menu Panel. My goal is to open the menu, verify certain elements within it, and then close or hide it. However, I am facing difficulty in closing/hiding this d ...
I am currently attempting to retrieve some data from the FanGraphs Leaderboards using the selenium library. Initially, I was using Firefox for this task, but due to Chrome being faster, I decided to make the switch. While things worked smoothly with Firefo ...
Is there a way to eliminate the space in <span id="balance">1 268</span> and convert it to an integer value? Here is the code snippet: Balance_afterWinORLoseBet.replace(" ", "") Balance_afterWinORLoseBet = int(balance_new.text) #Creat ...
I have successfully written code that navigates to a specific URL and changes the country and currency. Now, I am looking to refactor my code for better organization and easier maintenance. Although I haven't used the page object model before, I have been ...
I am currently utilizing selenium to assist in extracting data from a website that utilizes JavaScript to load its content. To view the link, you can click here: Animal population On the page, there are various selectable fields. Specifically, I am inter ...
I am encountering difficulties with retrieving and utilizing a Select element using @FindBy. Here is the markup: <td> <felt [control]="kontactTypeFC" [classes]="'hb-distNone'"> <label for="contactTypes" class="hb-label"& ...
While running appium on a real iPhone, I encountered the following error message. Despite searching for a solution, I have not been able to resolve it yet. [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appiu ...
Currently, I am faced with a challenge on my login page that redirects to a different page where I need to extract data from an element using Selenium. While running the code locally in Eclipse with the IE driver, I encountered an issue where the page sour ...