I am facing an issue where I am unable to click on the Save button while trying to download an Excel file using Webdriver in Java, as shown in the attached screenshot. Despite searching for answers in various forums, I have not been able to find a solution ...
How can I open a new tab with the 'https://www.gmail.com' url, extract some information, and then return to the original page using Python 3.8.5? I am currently opening the new tab with CTRL + t command, but I'm unsure how to switch between the two pages. ...
In my C# code, I am using Selenium to perform tests that involve file downloads. While I can successfully download files in my tests, I am facing issues with verifying the success of the downloads. As a solution, I want to retrieve the current download pat ...
I am having trouble with clicking a Point in Flash Player within a Flash Iframe that is embedded in a browser. I want to click on a specific button, but I find it difficult to code for Flash and interact with Flash Elements. Therefore, I would like to be ...
Task at hand: capturing the URLs/titles from Code snippet for testing purposes (fetching 3 pages and printing, not saving): from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverW ...
As I run a DelayedJobs queue utilizing Watir-Webdriver (with Headless and Firefox) to gather data from the web multiple times each hour, I am facing sporadic EOFError and ECONNREFUSED errors. The script is quite straightforward - it navigates to a website ...
I've spent countless hours attempting to utilize Selenium Webdriver in Java to interact with a link. There are 6 links, each with unique div IDs. Below is the HTML code: <div id="aktion_tr1" class="aktion"> <div class="zeile1"> <a ...
Need clarification on the following matter: Does Selenium 3.141 support jdk 13? Can you direct me to the optimal combination of Java and Selenium versions to use? ...
I encountered an issue while running this program. It performs well with codes initially, but when I tried to minimize the browser, an error popped up indicating that the program couldn't find the button. Is there a solution available to address this pro ...
Can someone explain why this snippet of code opens Mozilla twice and doesn't close it after finishing? I'm also a bit confused as to why the login function is within a class instead of being a standalone function. > import unittest from selenium import ...
I recently developed a selenium test in Ruby that is designed to navigate to a specific website and confirm the presence of a certain page element. The script functions correctly when run from the command line, but encounters an error when executed through ...
I'm attempting to restrict Javascript from altering the source code of the site while testing with Selenium. Disabling Javascript completely in the Webdriver is not an option as I require it for testing purposes. Below is my approach for the Firefox Webdri ...
I have a bash script that deletes my temporary files after each test, ensuring a clean slate for the next one. Is there a way to run bash commands or execute a bash script using Appium at the end of every test? Currently, our tests are written in C# - id ...
Imagine I am choosing with the following selector: //img[@data-blabla] If I want to wait for 10 elements to be loaded, not just one, how should this be altered? My assumption is to use the index [9] WebDriverWait(browser, 5).until(EC.presence_of_element_l ...
Within my application, I encounter emails in the inbox with unique IDs. Unfortunately, clicking on the first email is proving to be a challenge due to the constantly changing mail ID. The specific xpath looks like this: //*[@id='r1295']/td[4]/a ...
In order to preserve the chromedriver session, I implemented this code snippet: from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument('user-data-dir= path to where to save session') ...
ChromeDriver version 77.0.3865.40 is now running on port 14991, only accepting local connections. It is crucial to secure the ports used by ChromeDriver and testing frameworks to prevent them from being accessed by malicious entities ...
Actions actions = new Actions(driver); WebElement mainMenu = driver.findElement(By.xpath(".//*[@id='yui-gen2']/a")); actions.moveToElement(mainMenu).build().perform(); WebElement subMenu = driver.findElement(By.xpath(".//*[@id='helpAbout']")); actions. ...
I'm really puzzled as to why Selenium webdriver is having trouble locating the element with the name userid. <input class="required" type="text" size="15" maxlength="64" **name="userid"** value="" style="background-color: rgb(255, 255, 255);"> Th ...
Just wondering, can the Selenium code pick up where it left off as soon as the browser reaches a specific URL? ...
In my current project, I am using headless Chrome as a WebDriver for Selenium tests written in Java. I have noticed potential changes to the DOM when using the headless version of Chrome. Is there a method available to access a copy of the HTML DOM durin ...
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 ...
Upon reviewing the image below, my focus was on verifying two key elements: 1. The navigation bar is correctly displayed on the page with accurate dimensions. 2. The labels "Home", "About Us" etc. are accurately shown on the navigation bar and function a ...
Utilizing Selenium along with Firefox Webdriver to interact with elements on a webpage that features distinct CSS IDs, which change every time the page loads, is proving to be challenging. The reason for this inconsistency is due to the fact that the webpa ...
After trying everything I know to make internet explorer work with webdriver.io, I've encountered a confusing issue. To start, download the internet explorer driver from this link: http://www.seleniumhq.org/download/. The file is an .exe named ' ...
Struggling with a task for the past 2 days that involves running a JUnit test on JMeter. Here's the code snippet: public class LoadTest5 extends TestCase { private WebDriver driver; public LoadTest5(){} public LoadTest5(String testName){ super( ...
Encountering the frustrating "Chrome not reachable error" in my Selenium script. Everything was running smoothly just a few days ago, but now this error keeps popping up. Current Chrome Browser version: 86.0.4240.111 Chromedriver version in use: 86.0.4240 ...
Struggling to configure Selenium in Eclipse and encountering issues with code that fails to invoke the Browser. Here is the code snippet: package Basics; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class ...
When it comes to selecting an option from a dropdown box, there are multiple approaches that can be taken. I have previously used the following method: driver.findElement(By.id("selection")).sendKeys("Germany"); However, this method did not always guaran ...
I am currently utilizing Selenium Webdriver along with cucumber, gherkin, and java. I have tagged all my scenarios with labels such as @website, @wip, @disabled, etc. Whenever I attempt to use a junit runner to create specific test sets, it ends up execut ...
After using @FindBy for a while, I have come to appreciate the delayed location of elements until they are actually needed on the webpage. However, in certain scenarios where there can be anywhere from 2-10 similar elements with numbered IDs (like "elemen ...
Currently, I'm utilizing Selenium Webdriver with Ruby language. In my project, there's a dropdown menu that requires me to extract the visible text on the webpage interface after selecting each value, without any HTML tags. The challenge lies in the fact ...
After successfully adding an appointment in my script, a tooltip appears at the top of the screen with the message "Saved Successfully." I have attempted to assert this text using Thread.sleep(3000);, but my script only succeeds sometimes and not consist ...
Looking to create a Smoke test for a list of URLs by checking their titles for validity. Is this achievable? class identity(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() driver = self.driver self.driver.implicitly_wait(30) @da ...
Currently, I am involved in a website scraping endeavor utilizing Selenium with Python. One question that has crossed my mind is whether it's feasible to initiate the Firefox browser in the background or launch Firefox on a separate workspace within U ...
When attempting to close a popup using selenium's find element method with xpath, it fails to detect the popup. After trying methods like time.sleep(10) and driver.find_element(By.XPATH, "XPATH").close(), the issue persists. I've also experimented with us ...
Python and Selenium webdriver script: elem = driver.find_element_by_css_selector("#username") elem.send_keys("username") elem = driver.find_element_by_css_selector("#password") elem.send_keys("password") drive ...
I have encountered a challenge while storing multiple elements (specifically 17) into a List. When I attempt to iterate through the List and print something, I noticed that the iterator .hasNext() is not stopping at the end of the List. List<WebElement ...
Having trouble completely deleting a project due to the chromedriver instance running in the background despite no code execution. Please refer to the image linked below: https://i.stack.imgur.com/bt1Tb.png Error encountered during project deletion:https: ...
Consider: <tr id="pair_12"> <td class="left first"> <span class="ceFlags USD"> </span> USD </td> <td class="" id="last_12_12" ...
I am a beginner with Selenium and I'm attempting to choose an option (Job Title) from the sub menu (Job) under the main menu 'Admin' on OrangeHRM website. When running my script, it correctly clicks on Admin but instead of hovering over "Job" and selectin ...
Encountering a StaleElementReferenceException while testing a webpage with a table is proving to be a challenge. The table includes points and the status of two Blocking points, each with toggle state buttons for 'Yes' and 'No'. The steps in this process ...
I'm a beginner with Jenkins and I'm unsure about what to enter in the Build - Execute shell script section. I want to run my automation scripts using Jenkins. I write my scripts in Selenium WebDriver and use macOS. Can someone provide me with a detailed ...
Could I potentially analyze the attributes of a button element that I have selected using selenium? I am currently utilizing selenium to navigate through complex JavaScript-based web pages. My goal is to download certain files from these pages, but before ...
Currently, I am in the process of familiarizing myself with Selenium for automated testing. I have managed to successfully complete all parts of the test case except for the final step which involves checking if an alert is present to confirm the transacti ...
I recently started using selenium and encountered an issue while trying to select a radio button from a form. The radio buttons have IDs and when I use By.id("test12")).getAttribute("value")), it displays the correct value. However, when I try to click on ...
When I try to invoke the method Spage.editExButton(int ID), I encounter an issue where WebElement first is null and an error occurs. I have already defined it using the @FindBy annotation, so why is it still null? To work around this problem, I have to exp ...
I have been working on a unique test runner that allows me to run Selenium tests in TeamCity. One of the latest features I added is the ability to create tests in the IDE and save them in HTML format, which can then be executed by the test runner using Pyt ...
I'm having difficulty inputting a date into a datefield on a web application using Selenium Webdriver with Python. I have attempted the following code: driver.find_elements_by_name("invDate")[0].click() This code successfully places the cursor in th ...
I was attempting to create tests to verify mandatory fields. One of these obligatory fields is labeled as "Document ID". I managed to locate its XPath and verified it in both Firefox and Chrome, where it worked fine. However, when implementing the same XPa ...
When utilizing Chrome Selenium WebDriver, diagnostic output is displayed upon server startup: ChromeDriver (v2.0) has been initiated on port 9515 I would prefer not to view these messages, how can I silence them? This is my approach ChromeOptions optio ...
I am attempting to run a simple python script for automating Google Chrome using Selenium, but encountering an error when executing the following code: from selenium import webdriver chrome_path=r"xxxxchromedriver_win32_2chromedriver.exe" driver= webdri ...
When I create a script to confirm the successful addition of an element, I always find that the added element is positioned at the end of the page or becomes the last element in a different div. In this case, I am utilizing selenium webdriver and javascrip ...
While running my selenium tests with ChromeDriver, I am seeing this message in the console: Starting ChromeDriver 2.15.322448 (521791b310fec1797c81ea9a20326839860b7d3) on port 15823 Is there a method to hide or prevent this message from appearing in the ...
My Objective: To extract and analyze the messages received from individuals in online chat rooms like Omegle. I am attempting to compare these messages using if/elif statements. Here's my approach so far: #Attempting to retrieve the message from Omegle, ...
I am currently in the process of developing a script to test a JavaScript application on a website. While most of the code is complete, I have run into an issue. The purpose of the script is to modify a question on the website that utilizes numerous variab ...
We are looking to transform the lengthy HTML Xpath values in the existing code into a shorter CSS value: driver.findElement(By.cssSelector(".form button")).click(); ...
Is there a solution for the exception below? Take a look at the code snippet provided. package com; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Bro ...
In my current project, I am exploring the use of Selenium 2 for automation purposes. However, I am encountering some challenges that I need help with: What is the best way to perform a double click on a web element using Selenium? How can I execute ...
Currently tackling a Selenium webdriver Project where I find myself entering an iframe to input keys. However, now I am seeking guidance on how to exit that iframe in order to access a button outside of it. Here is a snippet of my code: WebDriverWait(bot,2 ...
Struggling to find the xpath for a link on a webpage. The HTML code for the link is as follows: <td style="width: 50%; text-align: right; vertical-align: middle"> <img id="ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl00_AddRecord1" ...
Whenever I run the following code: wait = WebDriverWait(driver, 20) # Adjust the timeout value as needed parent_div = wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".el-table-box"))) print(parent_div) The output I receive i ...
Currently, I am working on a project to create a spam bot for Google Forms in order to generate random submissions for my homework. However, I have encountered an error which reads: TabError: inconsistent use of tabs and spaces in indentation. Please note ...
https://i.stack.imgur.com/ZkRlK.jpg I need help clearing and running my code. The error message "Webdriver cannot be resolved to a type" keeps popping up. Can someone assist me in resolving this issue? ...
I am currently facing an issue with automating messages on LinkedIn. Specifically, I am struggling to close the chat window using Selenium. Can someone guide me through fixing this problem? This is my first attempt at using Selenium and any help would be g ...
Experiencing a strange issue while running my script on IE9. On the main page, there are icons/links that redirect to different applications. However, upon opening the main page, I notice that the mouse cursor quickly "shakes" between these links for abo ...
Is there a way to programmatically retrieve all chat divs in WhatsApp Web in the order they are displayed? Currently, using driver.find_elements_by_class_name('_210SC') seems to only fetch the first 20 or so chats in no particular sequence. It appears that ...
Currently, I am exploring BrowserStack and have a set of Selenium WebDriver tests written in Python. My objective is to execute the tests across multiple browsers. At present, I am utilizing desired_capabilities to define the browser, version, operating sy ...
Is there a way to bypass the Security Certificate page for Microsoft Edge when using Selenium Webdriver with Python? https://i.stack.imgur.com/StSpB.jpg I've tried solutions that have worked for Internet Explorer in the past, following suggestions from t ...
While conducting a Load test locally, everything runs smoothly. Chrome opens and performs the necessary actions without any issues. However, when attempting to run the test online in Azure, an error is encountered: The Initialization method SeleniumWebLoa ...
I'm facing an issue with Selenium Webdriver (version 2.32.0) and Firefox (21.0) while trying to manipulate a slider. My Java code looks like this: private void selectGiftCardPrice() throws TestingException { try { WebElement slider = ...
I have searched extensively for touch event examples using the Java webdriver, but surprisingly I could not find any for Python. Could someone please share a Python example here to save others from wasting hours looking for it? Below is my attempt at perfo ...
Currently, I am working with a function that is responsible for logging into a specific website. Once logged in, I return the webdriver instance to be used by another function in order to retrieve important information. However, I have encountered an issu ...
I'm encountering a challenge with switching to a child window in a specific scenario Scenario: 1. On the Login Page, I need to enter my user id and password. 2. After entering the credentials, I click on the submit button. 3. The system then opens a ...
Following up on my previous question about a Test causing error occasionally, I have initialized my driver. public class TestSuite { public static WebDriver driver; @BeforeClass public static void setUpClass() { driver = new FirefoxDriver(); } pu ...