List<WebElement> brandNames = driver.findElements(By.xpath("//tbody/tr/td[1]")); I am attempting to create an xpath for "Brand Name" that will capture all the values under the "Brand Name". Each time I refresh, the "Brand Name" moves to an ...
Currently, I am using FireFox version 18 along with Selenium version 2.29.0. During the execution of my test, an exception is thrown. The error message states: "Failed to connect to binary FirefoxBinary(C:Program Files (x86)Mozilla Firefoxfirefox.exe) ...
As a newcomer to Python and Selenium WebDriver, my goal is to verify all links on my webpage by checking their HTTP status codes to identify any broken links. The snippet of code I am currently using looks like this... from selenium import webdriver from ...
Hey everyone, I'm new to Python and I'm looking to use Selenium's webdriver for automation. Specifically, I want to automate the login process on a webpage. I've done some searching but haven't found what I need. Oh, by the way, t ...
Recently, I encountered a frustrating issue with Selenium (v. 2.48.0) and Java WebDriver after updating my Firefox browser to version 45 from 44. The problem arose when the page refused to load and instead froze on the Firefox start screen. While I am awa ...
Trying out the latest version of Selenium (2.29) with Firefox 8.0.1 after encountering a modal dialog issue that limited me to using FF 11 as the maximum version. I have an icon that, when clicked, triggers some javascript code. Using the following snippet ...
Currently, I am using Webdriver.io and facing a challenge in selecting an element within the "text-fields-container" class. This particular element happens to be a password field, and both classes share the same name. Can someone guide me on how to go abou ...
Being a Python novice, I have just one month of experience. While attempting to scrape a webpage, I can handle and interact with most elements except for two with dynamic labels. The HTML snippet from the source page is shown below: <span class="a- ...
Using Selenium 2 Python webdriver: I encountered an issue where I needed to click on a hidden element due to a hover effect. In search of solutions to unhide and select the element, I came across the following examples: Example in Java: JavascriptExecut ...
Recently, I embarked on my journey of learning Selenium on a Linux server. My first step was to open two Putty terminals and navigate to the directory where my files are located. In terminal 1, to start the server, I executed the following command: DISPL ...
Is there a method to detect if a website can tell I am using a bot while running Selenium WebDriver in Python or Puppeteer in JavaScript? Are there any resources that indicate whether a bot test would be failed, such as Cloudflare or Captcha? Appreciate a ...
Currently, I am using Selenium WebDriver with JUnit in Eclipse. Can you please advise me on how to effectively report test results? I have attempted to follow this method: http://testerinyou.blogspot.com/2011/03/how-to-create-reports-using-junit.html?sho ...
Encountering an issue when trying to select an option from a dropdown using autosuggestion. Seeking a solution for this problem. Below is the code snippet related to this matter :- @Test(priority = 4) public void ReportType() throws InterruptedException ...
I am currently developing a Java Swing application for managing object repositories in Selenium scripts. This application will launch a WebDriver instance and allow users to manually navigate to the desired element for inspection. My goal is to capture th ...
I've exhausted all possible solutions, but I keep encountering the following error: org.openqa.selenium.ElementNotVisibleException: element not visible This error occurs for a specific web element (within a popup window) while running a Selenium script. ...
Currently, I am testing the registration feature of an application. If any required fields are left empty and the registration button is clicked, an alert box will appear displaying an error message. I have written a script to handle these alert boxes. How ...
My Selenium script opening the Edge WebDriver is encountering issues with notifications popups that interfere with clicking on buttons on websites. I suspect these notifications are overlaying the website content, making it difficult for the code to locate ...
MODIFIED I made some changes to my code, implementing the following function in my page object. public void searchItem(String keyword) throws Exception { driver.findElement(searchBoxLocator).sendKeys(keyword); try { new WebDriverWait(driv ...
Ever since updating my Chrome browser to Version 65.0.3325.162 (the latest version), I've been experiencing a problem. Every time my tests start, an additional zombie Chrome process appears in the task manager, consuming a significant amount of CPU r ...
Currently, I am conducting a test on my Python Selenium bot on the Amazon platform. Upon opening the browser to navigate to a product page, I encounter a "Select Your Cookies Preference" pop-up at the bottom of the screen. Although I have successfully cod ...
When testing with the new geckodriver and marionette enabled for FF48 and selenium 3, I encountered an issue where the test was unable to select options from a dropdown list using any element. Strangely, the test worked perfectly in FF45 and all other brow ...
My attempt to click on a href using Selenium VBA in a webpage is resulting in an error message. The following code snippet shows what I have tried so far: Sub test() Dim Driver As New Selenium.FirefoxDriver Driver.Get "http://sums.99acres.com/sum ...
What is the best method for returning to the main page from an iframe? For example: driver.SwitchTo.Frame(1); driver.SwitchTo().DefaultContent(); The above code snippet is not working. Does anyone have any alternative solutions to regain control? ...
I am working on a project with JUnit tests for about 5 different classes (selenium tests). I am looking for a solution to properly teardown the webdriver at the end of the program. Can anyone advise me on where to place the @AfterClass and how to pass the ...
I encountered an error while trying to run Selenium on Chrome, it said: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. Any advice on how to resolve this issue? The full error message is provi ...
I am currently utilizing Selenium for testing my User Interface. My goal is to implement the @FindBy-Annotation in my code. The first snippet of code below works without any issues: @FindBy(how=How.XPATH, xpath ="//input[contains(@id,'idOfInputField')]") ...
Currently working on a research project where I am attempting to gather the json files from the French lobby register. However, I am encountering an issue with my selenium webdriver as I am unable to click the field. the button location can be found here. ...
Currently, I'm utilizing Selenium WebDriver with the Python bindings to automate various WordPress tasks. So far, the process has been smooth sailing. However, I've hit a roadblock while attempting to select a checkbox. The challenge lies in the ...
Recently, I started using selenium and encountered an issue while trying to retrieve the value of a textbox. Here's the snippet of my code: WebElement e = driver.findElement(By.id("id")); e.sendKeys("text"); String str = e.getAttribute("value" ...
Currently tackling an automated testing project with Selenium 2.0 and finding the API to be quite low-level. Interested in refactoring common tasks like form handling to avoid repetitive code. Experienced difficulty locating a collection of contributed c ...
When running tests in Selenium, I often find myself manually clicking and entering data in the fields of my browser. Is there a way to capture and save these manual actions as logs? I'm curious to see exactly what actions the user takes during a manual te ...
Operating System: Windows 10 Browser: Chrome WebDriver Browser Version: Chrome 63.0.3239.10 (64-bit) Selenium Version 2.44 Added the following dependency : <dependency> <groupId>org.seleniumhq.selenium</groupId> ...
In my project, I typically create a Web Driver instance in all of my test classes and initialize it with Firefox Driver. Is this standard practice for automation, or should I only create it once and use it throughout the entire project? If the latter is re ...
Currently, I am using Codeception in conjunction with Selenium Webdriver and encountering a WebCurlException Error once I execute codecept.phar. Here are the steps I've taken: 1. I initiated the selenium stand alone server jar file via the command prompt ...
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 ...
When using Selenium and Python, I am working on automating the process of clicking on targets.simple.csv to download a .csv file from the following page: This is the code snippet I have written: import pandas as pd import numpy as np from datetime import ...
Having trouble pasting text into a textbox on MACOS? Trying to use the code snippet below, but Control + v and Command + v shortcuts are not working. It seems like this is a known issue, but unsure if it has been resolved yet. https://github.com/seleniumhq ...
When using c# Selenium, I encountered an issue where the FindElement method was unable to locate an element on the page. Instead of throwing a NoSuchElementException as expected, it resulted in a WebDriverException. The Exception details are as follows: ...
I have been trying to use this code snippet to bring the window into focus. It seems to be working smoothly on Internet Explorer, but unfortunately it is not behaving as expected in Firefox. Any tips or recommendations would be greatly welcomed. ((Javas ...
In the test class of my Java code, I have implemented the following snippet which is supposed to set a timeout of 5 seconds for page loading. However, it doesn't seem to work as expected. Even when tested on slow connections, the page load waits indefinite ...
. Upon clicking on CloudApperâ„¢ within the Solutions section, I encounter an ASCII code error. I locate the element by using: driver.find_element_by_partial_link_text('CloudApperâ„¢') Is there a way to successfully click on this partial link? ...
When utilizing the executeScript() method from the JavascriptExecutor interface in Selenium WebDriver, what do arguments[0] and arguments[1] signify? Additionally, what is the function of arguments[0] in the following code snippet. javaScriptExecutor.ex ...
After creating this XPath expression, I am encountering an issue where only the first element is being retrieved. However, there are actually 3 or 4 elements with the same XPath that I need to capture. The number of elements can vary from page to page, ra ...
https://i.stack.imgur.com/zb7f5.jpg try: details = WebDriverWait(driver, 10).until( EC.presence_of_element_located((By.ID, "DataTables_Table_5")) ) scores_list = details.find_elements_by_tag_name('tbody') for score_item in ...
Could you assist me with the following issue? I have identified the problem but have been unable to resolve it. When I run the following code, the browser launches and the test passes: import unittest from selenium import webdriver driver = webdriver.Chro ...
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 ...
While conducting WebDriver tests recently, I have encountered TimeoutExceptions even when I am sure that the element is present on the webpage. Take a look at this code snippet: // Wait for page to be partially setup wait.until(visibilityOfElementLoca ...
Why is driver.getTitle() returning null instead of the title of the page? The HTML structure in my web page is as follows: <head> <!-- needed for translation of titles --> <!-- needed for gomez.jsp --> <script type="text/javasc ...
Experiment Scenario: Attempting to capture and evaluate Gmail Login functionality. Current Result: Upon running the WebDriver code, a Mozilla browser instance is launched. Although the username is successfully entered, the password field remains unfilled. ...
While utilizing Python Splinter with Firefox 47 and the new Marionette webdriver, I encounter a certificate error when trying to access a specific website. I attempted to resolve this issue by accepting SSL certificates using the following code: browser = ...
I have attempted to scroll a page entirely using the following code: var scrollToBottom = function() { window.scrollTo(0, Math.max(document.documentElement.scrollHeight, document.body.scrollHeight, document.documentElement.clientHeight)); }; window.on ...
While I have experience using selenium, I have not had the opportunity to utilize WebDriverWait until now. I am currently facing a situation where I need to click on a Back button, which appears to be available immediately but may not be accessible for a b ...
When the driver.quit() method is called, it causes Firefox to stop working. Although the tests do not fail, every time driver.quit is executed, the browser crashes as seen in the image below. This is my code snippet: public void quitDriver() throws E ...
While I have successfully managed to launch Firefox on Selenium v2.0.50727 using C# .net3.5, I face issues when trying to load Firefox on Selenium 2.5.1 as it tends to hang (in both C# .net3.5/net.4). Unfortunately, there are no error logs available to p ...
I'm struggling to automate the process of posting on Facebook. My script is having difficulty identifying the textarea in our news feed accurately. Despite trying various selectors, including those recommended by Selenium IDE, I have been unsuccessfu ...
I am facing a situation where I need to perform a right click on a link and select the option "Open link in incognito window" from the context menu. However, when I try to do this with the code snippet below, the link ends up opening in the same window ins ...
Can Webdriver and PhantomJS be installed on Amazon Elastic Mapreduce AMIs? If I use sudo apt-get to install dependencies in a bootstrap script, will it need to run each time a task is executed or will the installations persist? Is it possible to pre-buil ...
Currently, I am using a method called VerifyAndDismissAlert() in an automated test. try{ WebDriver WD = WebDriver(); Alert alert = WD.switchTo().alert(); alert.accept(); String alertText = alert.getText(); Pause(1); ...
I have a Login form with a username, password, captcha text field, and SIGN-IN button. The elements are clickable and visible from the beginning. https://i.stack.imgur.com/rHbms.png With Selenium, I am able to provide input for the username and password ...
Current Situation: While working on my automation suite, I encountered a frequent occurrence of alert boxes across different parts of the website as per business requirements. Instead of using try-catch blocks repetitively, I aim to streamline the proces ...
To begin, you will need to import the following two packages: org.openqa.selenium.*- includes the WebDriver class required to create a new browser with a specific driver org.openqa.selenium.firefox.FirefoxDriver - includes the FirefoxDriver class needed t ...
I am currently utilizing http://www.makemytrip.com/ This is the HTML code. <div class="mrgnBot30 clearFix"> <span class="watch_icn flL"></span> <div class="widget_inner clearFix suggest_me padBot15 flL"> <h3 class="clearFix has ...
When utilizing both wait(until.elementLocated(element, timeout)) and wait(until.elementVisible(element, timeout)), I have noticed that the 'wait until visible' method fails in certain scenarios where the 'wait until located' method does not. Can you expl ...
Currently, I am working on a beta proof of concept automation project where my main focus is entering a Google Drive pop-up window and selecting a specific document to submit. The appearance of the popup window can be seen below: https://i.stack.imgur.com ...
Is there a method in Eclipse debugger to determine if a Selenium element is stale? org.openqa.selenium.StaleElementReferenceException: The element has become stale and is no longer attached to the page document. ...
Oh no! An error has occurred: Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist Here are the code trials that led to this issue: import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.C ...
When logging in to Yahoo mail, the cursor automatically focuses on the Yahoo ID text field. I need to confirm whether the cursor is indeed focused on the Yahoo ID field. Here is the HTML code for the text field: <input name="login" id="username" maxlen ...
Can someone help me with capturing a specific image of a website instead of the entire screen? I tried using the code below to capture the screenshot, but it ends up capturing the entire screen which doesn't solve my problem. WebDriver driver = new F ...
Code: public class ContactFormTest { WebDriver driver; @BeforeMethod public void setUp() { System.setProperty("webdriver.chrome.driver", "Driver Path"); driver=new ChromeDriver(); driver.get("URL"); driver.manage().deleteAllCookies(); driver.manage().wind ...
In my IDriver class, I am looking to implement a method like the following: this.driver.WaitUntil(x => LoginForm.Displayed, TimeSpan.FromSeconds(5)); this.Driver is an IDriver field The current implementation does not wait for element to be displayed ...
While debugging in VS2010 with Selenium WebDriver 2.5.1 DLLs, I encountered a PInvokeStackImbalance error. Interestingly, switching to the older version (2.4) of the DLLs eliminates the issue completely. I'm puzzled - am I overlooking something? Error m ...
Recently, I encountered a situation where I was provided with a list of 222 inappropriate words that must not be entered into any textboxes. I am wondering how I can write my tests using C# and WebDriver to handle this issue effectively. Although I am aw ...
When I create a new sheet, it works fine. However, when I try to call the same method to create another sheet, it overrides the previous one. After multiple method calls, only the last sheet is showing up. Each time, I am creating a new sheet and not a ne ...
Has anyone experienced the issue where the selenium.setTimeout() command is being ignored when using WebDriverBackedSelenium? Any insights or solutions? ...
After receiving valuable assistance from the online community, I managed to create a script that can navigate through a webpage and join a waitlist. The issue arises when the 'join waitlist' button is not clickable because the waitlist is not open at tha ...