Looking to implement proxy settings in Internet Explorer using WebDriver. Here's the code I'm currently using: System.setProperty("webdriver.ie.driver", "Path to IEDriverServer.exe"); Proxy proxy = new Proxy(); proxy.setProxyAutoconfigUrl("proxyh ...
Has anyone found a solution to this issue? I have instantiated the driver and opened the browser, but I am encountering the following error: [01:53:15,339] INFO [CheckOut-0] - ####### Test 'MyTestCases.CheckOut' started Starting ChromeDriver (v2.9. ...
Currently, I am working on a Python script to automate logging into Edge using msedge-selenium-tools. However, when running the script, a modal window pops up and I am facing challenges in identifying CSS selectors to use with Selenium. Here is the snippet ...
@Test public void TC8() { driver.findElement(By.id("id_username")).sendKeys("admin"); driver.findElement(By.id("id_password")).sendKeys("admin"); driver.findElement(By.cssSelector("button,input[type=' ...
I am attempting to scrape tables from the humane society legislative fund. I have successfully extracted data from one page using this code: import time import pandas as pd from selenium import webdriver from webdriver_manager.chrome import ChromeDriverMan ...
I need to input the number 1999 into a text box using Selenium WebDriver (Java). However, the code I tried using to combine key strokes before sending them is not working: String allKeys = Keys.NUMPAD1 + Keys.NUMPAD9 + Keys.NUMPAD9 + Keys.NUMPAD9; An err ...
I have encountered an issue while working on a script using HtmlUnitDriver. The error message I am receiving is "java.lang.NoClassDefFoundError". Could someone assist me in resolving this problem? Please review the code and error details below. Below is t ...
Is DataSource attribute supported in .NET Core projects of MSTest? If not, what is the alternative? For more information, visit: https://learn.microsoft.com/en-us/visualstudio/test/how-to-create-a-data-driven-unit-test?view=vs-2019 Note: In .NET Core, th ...
After upgrading to Chrome version 89 and configuring the settings as shown below, I am still facing issues with dismissing the permission popup that is blocking the execution of further test cases. Any suggestions or workarounds? https://i.stack.imgur.co ...
I encountered an issue while trying to verify the presence of an alert message. I attempted to use the following code snippet: public boolean IsAlertPresent() { try { driver.switchTo().alert(); return true; ...
Unique Heading how can I skip the first row in a loop and avoid getting null values I'm trying to skip the first row by starting my loop at i=1, but it's returning null values for the first row. Problem with First Row Values how can I skip the first ...
Currently, I am utilizing selenium KEDA for auto-scaling purposes. However, upon reviewing the HPA logs, I stumbled upon an error stating that it FAILED to retrieve the Metrics. I would greatly appreciate any guidance or assistance in resolving this issue ...
I am looking to create my own custom web element class. For example: class MyWebElement(selenium.WebElement): def __init__(self, element): self = element def click(self): #my custom actions super().click() However, when I call super.click(), ...
I am currently in the process of integrating Angular (v4) into an existing ASP.NET MVC 4 application. Within this application, there is a project that includes Selenium Web Driver along with a web.config file. node_modulesselenium-webdriverlib estdata ...
Currently, I am working on creating a web bot using Python in IntelliJ. Fortunately, I came across a valuable plugin called selenium that has significantly improved my workflow. The only downside is that the selenium plugin is exclusively available for d ...
After attempting to execute this script using both a while loop and a for loop, I noticed that it stops working after just one repetition. driver.find_element_by_class_name("submit").click() x = driver.find_element_by_class_name("submit" ...
Currently, I am a beginner in utilizing Selenium Web Driver with Java. Successfully launching an application, but encountering SSL certificate errors. Seeking guidance on how to address this obstacle as I continue to learn and prepare for implementation at ...
When it comes to testing with NodeJS, I rely on selenium-webdriver. My goal is to streamline the selenium-webdriver API by making it synchronous, which will result in more concise tests. The method getTitle() is used to retrieve the title of the current p ...
A problem has arisen with Selenium Webdriver(2.53) and Java (jdk 7). Mozilla Firefox ESR (45.2.0) crashes immediately upon opening a page, displaying the following error message: An Error Has Occurred org.openqa.selenium.remote.UnreachableBrowserExceptio ...
After writing code using Python's Selenium and creating a graphical interface with PyQT5, I encountered an issue. Whenever I click on the start button, the web driver opens and my windows' code becomes inaccessible. It seems to freeze, but I still need t ...
I recently developed a basic automation script in Python using Selenium but encountered an unexpected exception. Here is the code snippet causing the issue: import pandas as pd from pandas import ExcelWriter from selenium import webdriver import seleniu ...
There seems to be an issue with the browser Options in Selenium where driver.manage().deleteAllCookies() is not working as expected. Here is a snippet of the code showcasing this problem. var profile = new firefox.Profile('./fProfile'); profile.setPrefere ...
I need assistance with deploying a selenium script on Ubuntu 20.04.3. I am encountering an error message when trying to run the script, as shown here: error on Jenkins Below is my current script: from selenium import webdriver from selenium.webdriver.ch ...
For a Magento-based website, I have been developing an automated checkout script using Python 3.8. Everything was working smoothly until we reached the shipping selection stage. The error message "element not interactable" appears when trying to click the ...
I recently started exploring Selenium WebDriver to create black box integration tests. At the moment, I am using MSTest as my test runner. However, when attempting to call a WCF service to support my work, I encountered an error: The error message state ...
While conducting UI Testing, I came across the following error: org.openqa.selenium.WebDriverException: Element not found or not visible for xpath: (//div[@class='popupContent'])[last()]/div/div/div/div/div[2]/div/table/tbody Build info: ...
I am currently working on a task involving automation. My goal is to extract all email addresses from text spans that contain more than 200 characters. However, these email addresses are not in the regular expression format and are instead displayed as: E ...
I am attempting to access and read the .xls file (MS 97-20003 Worksheet) that has been downloaded from our application using Selenium WebDriver. However, I am encountering the following error: "org.apache.poi.poifs.filesystem.NotOLE2FileException: The sup ...
My goal is to utilize Selenium with Firefox to launch Google. The version of Firefox I am using is 52.3.0 (64-bit). Here is the code snippet I have tried: System.setProperty("webdriver.gecko.driver","C://geckodriver-v0.19.0-win64_2//geckodriver.exe"); ...
When I try to import WebDriverManager for Chrome, here's the output I receive: $ pip install webdriver-manager Defaulting to user installation because normal site-packages is not writeable Requirement already sa ...
When this function is called, it initiates scrolling and then pauses the browser for a 2-second period. scrollToElement(webElement: any) { browser.executeScript('window.scrollTo(0,400);').then(()=>{ console.log("sleeping"+ browse ...
I am encountering an issue with Selenium during a click event WebElement btn = driver.findElement(By.xpath("//form[@name=\"addMemberForm\"]/div[14]/div/button")); System.out.print(btn); The output of the print statement [[ChromeDriver: chro ...
Query: <div class="btn btn-second-in-pair-not-desired btn-tall">Clear search</div> <div class="btn btn-second-in-pair-not-desired btn-tall">Raw Search</div> <div class="btn btn-second-in-pair-not-desired btn-tall">Basic Searc ...
I am encountering an issue with extracting content from Gitee using Selenium in Python. Whenever I attempt to extract the text, it returns blank results. Here is the element inspection: https://i.stack.imgur.com/5aulV.png My goal is to retrieve all the t ...
I'd love to learn more about the inner workings of the "fluentwait" method. Can someone break down how it operates and its overall structure? Wait<WebDriver> wait = new FluentWait<>(driver) .withTimeout(60, TimeUnit.SECONDS) .pollingEvery(5, ...
Hey everyone, I'm currently facing a coding challenge and I need some assistance. Below are images of my code and the error I'm encountering. Can anyone provide me with guidance on how to fix this issue? https://i.stack.imgur.com/SBNy2.png http ...
Is there a way to retrieve a list of elements from a webpage that contain a specific string without modifying the page's structure? I am currently using Selenium with XPath for evaluation, leveraging the browser-supported XPath engine. Here is a simp ...
I've been working on a project involving automation that opens YouTube, plays a specific video, accesses the "Stats for Nerds" dialog, and extracts information from it. This process was functioning properly yesterday. However, today I added commands to adj ...
ElementSelector Element = new ElementSelector(driver.FindElement(By.Id("ddlCUcardNo"))); Element.SelectByIndex(2); I'm encountering an issue with a listbox while using Selenium in C#. I need to be able to select multiple items (options) from the list ...
I've been attempting to scrape data from this website, but encountered an error when trying to input the search phrase. AttributeError: 'NoneType' object has no attribute 'send_keys' After researching on StackOverflow, I learned t ...
I am currently looking for ways to automate the testing of links on a Sharepoint site, ensuring they are connected to the correct URL. However, I have hit a roadblock when it comes to performing the comparison. After locating the links and adding them to ...
My challenge is selecting a specific row in a table on a website along with the corresponding button next to it. The issue arises when trying to select the button unique to each row, instead of simply remembering the last button position as it currently do ...
As outlined in chapter 4.10 of this guide: To eliminate the contents of a webElement, I can execute the following: webElement << Keys.chord(Keys.CONTROL, "a", Keys.BACK_SPACE) However, I find this approach to be less than ideal. Is there a way to ...
I am aiming to modify some java selenium tests so that they run on Chrome with third party cookies blocked. Is there a way to achieve this? Are there any successful examples available demonstrating how to accomplish this task? I have come across suggestio ...
Currently, I am working on a python script that utilizes Chromedriver and Selenium in order to extract data from a specific website. However, I have encountered an issue where after successfully scraping data from one page, the program fails to switch to t ...
Here is the code snippet I am using: #!/usr/bin/python3 from selenium import webdriver driver = webdriver.Firefox(executable_path=r'/usr/local/bin/geckodriver') driver.get('http://www.python.org') The error that I am encountering is ...
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 ...
Can someone assist me with this question: I am seeking guidance on how to eliminate the instance driver from the BaseTest class while still being able to utilize it in the class and its subclasses? I am currently using POM to construct a testing-framewor ...
Having trouble checking a checkbox inside a table using Selenium Webdriver in Java? Even with version 2.52.0 of Selenium, the element not found error persists across different web browsers. The iFrame seems to be correct as I can interact with other compon ...
Utilizing Junit and cucumber framework for the execution of test scripts while setting up and running code on VDI. Check out the code snippet below, which is used to attach screenshots in the Apphooks- @AfterStep public void addScreenshot(Scenario sce ...
Currently implementing the page factory pattern and encountering Argument errors in multiple locations. This is the code for my Homepage class: require 'page-object/page_factory' class Homepage include PageObject include Configuration def init ...
Having some difficulty with managing RemoteWebDriver sessions in parallel. This issue arises when multiple instances of RemoteWebDriver are running simultaneously and one instance calls the close method. Here's an example scenario: Test A begins an ...
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( ...
What could be the issue in the code that is preventing it from running? Please provide guidance on how to resolve this. package tc1; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org ...
Currently, I am in the process of running an automation test on SauceLabs using WebdriverIO version 5. One of the tests involves uploading a file to Microsoft Edge. Below is a snippet of the code for reference: const path = require('path'); const filePath ...
Using selenium-server-standalone-2.18.0.jar. Configured the hub and node on the same host. Executing the client code on a separate host. Observing in the hub console, I notice that one of the nodes has connected with 5 firefox icons. Upon running my clien ...
Currently, I am dealing with a web page source code that utilizes JavaScript to display text. Below is an excerpt from the source: var display_session = get_cookie("LastMRH_Session"); if(null != display_session) { document.getElementById("sessionDIV") ...
I attempted the following code to send a message on a WordPress contact 7 page Here is what I tried: email = driver.find_element_by_name('email') email.send_keys("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7 ...
I am facing an issue with my JavaScript code on a page that continuously polls an API and updates an element in the HTML every second. I need to test this functionality using Selenium WebDriver, but I'm unsure how to handle the polling aspect of the J ...
When testing AJAX applications, is there a specific waitForText() method in Selenium WebDriver that can be used? Essentially, I'm looking to verify the appearance of new or updated elements/text after an AJAX request. Is there a sample code snippet demon ...
Understanding the Issue Is there a way to retrieve data from the Chrome Performance tool either using the browser console or utilizing Chrome driver methods in Selenium? I am specifically looking to obtain the page loading time. The graphs at the top ind ...
If you don't already have an account, you can easily sign up by clicking on the "Sign up" button. However, I am having trouble locating the xpath for this web element and keep receiving an error message saying "Unable to locate element". I have tried ...
Can someone please help me identify what is going wrong in my code? WebElement dropdown = driver.findElement(By.xpath("//*[@id='idCallType_100']")); List<WebElement> Options = dropdown.findElements(By.tagName("option")); Syste ...
During one of my test cases, I am verifying the visibility status of certain elements. The process is quite simple: Login Verify that 5 buttons within the left menu bar are not visible (as the user does not have access rights) End the test This verifica ...
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 ...
from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import by serv_obj=Service("C:Driverschromedriver_win32chromedriver.exe") driver=webdriver.Chrome(service=serv_obj) driver. ...
I'm currently facing an issue while attempting to run my Java Selenium tests using Opera browser (version 31). I have the latest versions of Selenium Webdriver (2.47.1) and OperaChromiumDriver (0.2.2) installed. I've experimented with two different metho ...
My goal is to replicate mouse movements along a simulated curve line or parabola in order to mimic natural user behavior on websites. While I am familiar with using Selenium to click on elements, this method does not accurately simulate human interaction ...
How can I click the element below using Python Selenium Chrome WebDriver? <a href="javascript: d.o(18);" class="node">Maintenance</a> It works after switching to the right frame. browser.switch_to_frame("navigation") browser.find ...
I've recently started using selenium and I'm still in the process of exploring its capabilities. Currently, I am trying to test an ajax element on a website. When I click on this element, some text appears in a specific area on the page. I have successfull ...
My current goal is to track down and download an individual's image hosted on research gate using Python. Despite trying various methods, I've encountered a 403 error with the initial request hit every time (even after attempting to tweak the hea ...
Having recently started programming, I have a question about Selenium. I am confused as to why the browsers opened by Selenium close at the end of the code. from lib2to3.pgen2 import driver from selenium import webdriver def Online_PLatform(): ...
Currently, I am working on mastering Selenium, but I have hit a roadblock that I need assistance with. My task is to gather all the betting information for games from the following link and store it into an array. Given my limited experience with HTML an ...
wait.until(EC.presence_of_element_located((By.XPATH, "//table//tbody//tr//a[@data-refid='recordId'][0]"))) driver.implicitly_wait(20) line_item = driver.find_elements("xpath", "//table//tbody//tr//a[@data-refid='recordId'][0]" ...
I have a set of tests ready, but I am facing an issue with running them. Currently, I am working in normal Java environment and to run multiple tests, I am using TestNG. However, I am unsure about how to write the code to run multiple tests using TestNG an ...