Questions tagged [selenium-webdriver]

Selenium WebDriver offers a versatile WebDriver API that allows developers to manipulate web browsers using various programming languages. Make sure to include a tag for the specific programming language you are utilizing.

During regular test runs, the Actions class in Selenium C# fails to properly execute, despite functioning correctly during debug mode

I'm currently using the Actions class to navigate to an element and then click on it. The code functions correctly when I run it in debug mode, but fails during regular test execution. Specifically, I am working with a dropdown menu where I need to select ...

I'm looking for recommendations on a strong automation framework utilizing Selenium, C#, and NUnit 3.0. Any suggestions?

Embarking on my journey as a newcomer to selenium automation, I am eager to integrate it into my latest project using C# and NUnit3.0. Despite designing a framework, it appears to have some bugs that I am struggling to resolve. Seeking guidance and suppo ...

Retrieving Selenium IDE output from Selenium WebDriver

I have a specific requirement where I need to access an element on my webpage and retrieve all of its properties. While I have successfully written a webdriver script to gather the id, name, css, and link text of the element, I am struggling with how to ob ...

Having trouble accessing a json file using Python Selenium Webdriver in Firefox?

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. ...

Issue with Docker and Selenium connecting to renderer

I've been working on setting up browser testing using selenium and docker with behat. One major challenge I'm facing is the inconsistency in running the tests smoothly. Sometimes everything works perfectly, but most of the time I encounter connectivity i ...

E/launcher - The operation ended with a 199 error code

Hey there, I am new to Angular and Protractor. I keep receiving the error message "E/launcher - Process exited with error code 199" in my code. // conf.js exports.config = { //seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['spec.j ...

The element within the HTML code seems to be elusive when attempting to locate it using the Selenium Robot Framework

Displayed below is the HTML code for a toggle element representing a sidebar menu (nbn network rollout reports) that will reveal two links upon being clicked or expanded. An attempt was made to use the "Click Element" keyword with "network rollout repots ...

Instructions on how to display a list of distinctive icons featured in article headlines along with their respective usage frequency

Visit this website for the latest news. Count the number of articles displayed on the page and identify all unique icons used in the articles. ...

Automate web browsing tasks by locating and interacting with iframes using the last-click method

After attempting to use the event last.click(), no errors were generated but the event did not run (is_element_present_by_xpatch return true). from splinter import Browser import time from time import sleep import unicodedata from unicodedata import norm ...

Employing the is_displayed() function in Python Selenium resulted in an error stating that no such element could be found

Attempting to implement an if-else condition based on element visibility: if driver.find_element(By.XPATH, "//span[contains(text(),'Create a public post…')]").is_displayed(): send keys and input file.... else: print("nothing") Encount ...

I'm trying to figure out how to scroll through the comments on a YouTube video, but I'm having

I'm currently working on creating a YouTube Scraper. I have successfully extracted the desired data from the video, but I am facing an issue with scrolling to the end of the comments section. Below is the code snippet that I have used: from selenium ...

Is there a way to transfer my existing Chrome profile to Selenium for testing purposes?

I am seeking a way to utilize Selenium in conjunction with my existing Chrome profile, even if it is currently being used. My goal is to initiate Selenium automation that can recognize any cookies set in my current Chrome session and have the ability to mo ...

Struggling with retrieving information through a CSS selector/xpath with Selenium?

I'm having some trouble extracting data from a specific link using Selenium with Python. The link in question is: www.oanda.com When I attempt to locate an element, I keep encountering an error that states "Unable to Locate an Element". In the browse ...

How to terminate a Selenium "click" thread after a timeout

I have successfully implemented a method for terminating a Selenium get thread after a set timeout by following instructions I came across on Stack Overflow... String url = "https://www.myurl.me"; Integer timeout = 3000; Thread t = new Thread(new Runnable ...

What could be the reason for selenium's inability to locate this specific web element?

I'm having trouble using Selenium in Python to locate the "Allow all" button for the cookies pop-up on the following website: Additionally, I am unable to find the login button as well. driver = webdriver.Chrome(service=Service(ChromeDriverManager().insta ...

Python -Finding flexible outcomes choosing - Google exploration -tips on implementing

Currently, I am attempting to gather data from certain web pages by accessing them through Google Search. To ensure accuracy in my results, I need to implement a list of restricted words. Let's imagine that the top 4 search results for Python on Goog ...

What is the best way to efficiently distribute shared page objects and cucumber step definitions across various Ruby projects?

I am working on several projects that require the use of shared step definitions and page objects in cucumber tests. Rather than duplicating these common elements in each project, I would like to find a way to share them across multiple projects. Has anyo ...

Learn how to utilize Selenium in Java to access properties such as Role:img

Upon inspection, a list of properties can be found in the Accessibility section of the webpage for the element under evaluation: Computed Properties Name: "" `aria-labelledby`: Not specified `aria-label`: Not specified `title`: Not specified Rol ...

Update in Jenkins: Alterations to Slave User Access

My Jenkins master is connected to a MAC slave through Java WebStart since SSH is not working. An administrator user named 'qalab' is logged into the machine, which never sleeps. The system information of the node is displayed in the image provided. I am ...

How to use Selenium in Excel VBA to wait for a specific value to appear

Having an element with the following HTML: <span id="ContentPlaceHolder1_Label2" designtimedragdrop="1319" style="display:inline-block;color:Firebrick;font-size:Medium;font-weight:bold;width:510px;"></span> Upon clicking the Save button on ...

The input boxes are identical in attributes. How can I create a unique XPath for each one?

I encountered an issue on where two input boxes have the same name and attributes (Enter City Or Airport), causing my xpath to throw a "no such element" exception. Is there a workaround for this problem? Any help would be appreciated! Below is the code ...

The allure report is failing to connect with the HTML report

My attempts to include a screenshot in my allure report have been unsuccessful. @Test (priority = 1, description="SS1 Verify the login section") @Description ("Verify that user mngr116116 can logon to the system") public void login() { page = new ...

After hitting the submit button, it is important to collect the ID

When working with selenium in Java, I have encountered a scenario where clicking on the submit button generates a random ID on the screen (displayed within a div). I need to capture this generated ID and input it into another field to ensure all relevant ...

Swipe down to view all the links

Out of 3821 links, only 103 were provided to me. I tried applying the condition `window.scroll` to retrieve all the links, but unfortunately, it did not work as expected. from selenium.webdriver.common.by import By from selenium.webdriver.common. ...

Locating an HTML element by its inner content using Python's Selenium

I am trying to locate a specific web element using Selenium and Python. The element I am looking for has the following HTML: <td class="letterbreak first">default</td> My goal is to locate this element based on its inner HTML text, w ...

How can one use Selenium to verify the existence of an element on a webpage?

Currently, I am developing a program in Selenium with Python and facing an issue. During the test execution, there is a possibility that a button may or may not appear on the webpage based on an unknown parameter. The relevant HTML tag for this button is ...

I am seeking assistance with locating a button using Selenium Firefox Webdriver and require guidance on the code necessary to click the

Seeking assistance with Selenium to click on the Income Statement button located at . Can anyone identify the button name and review the code for accuracy in implementing it? Grateful for any guidance. Thank you! url = 'http://www.tradingview.com/scre ...

Is Selenium Service not recognizing the executable_path parameter?

Currently using Selenium 4.1.5, I encountered an issue while trying to execute the following code: from selenium import webdriver from selenium.webdriver.chrome.service import Service service = Service(executable_path=f'./chromedriver.exe') driver = webdr ...

Converting SHDocVw to Selenium to extract all inner text of a specific tag name

I'm trying to automate this task using Selenium with VB.net and Microsoft Edge Dim findDuplicates As IHTMLElementCollection = HTML.getElementsByTagName("td") For Each element As IHTMLElement In findDuplicates If el ...

Extracting elements using Node.js and Selenium

I'm currently experimenting with Selenium and nodeJS for the first time. I'm trying to parse an HTML page and am running into issues when attempting to perform a deeper search using XPATH on returned elements. Below is my code: async function par ...

Issue with Selenium IE Webdriver Proxy: hudsuckr.exe cannot be found

I am encountering an issue where I am unable to change the proxy settings of the IE Webdriver. This problem is being caused by the following exception: Caused by: java.io.IOException: Unable to locate: hudsuckr/hudsuckr.exe My current approach involves ...

Selenium encountered a situation where Chrome abruptly shut down after successfully populating the form

I am currently using selenium and have encountered an issue where the chrome browser closes immediately after filling out a form. I would like to prevent this from happening as I want the browser to remain open. Below is my code: from lib2to3.pgen2 import ...

The challenge of clicking the "ShowMore" button in an infinitely scrolling page is a common issue when using Selenium with Python

I am currently working on extracting Mobile Legend comment data from the site using web scraping. I need my bot to automatically scroll down and load as many comments as possible before scraping all of them. However, I encountered an issue when ...

Tips for incorporating an if condition once an element has been located using the findelement command

I need to identify a specific link text in order to perform an action. For example, on the Login page, I want to check for the presence of the "English" link. If it is found, I would like to click on it; otherwise, I will proceed with my usual flow. How ...

Tips for using Selenium to interact with the save or print button in the Google Chrome print window, even when the HTML page contains a shadow-root

https://i.stack.imgur.com/NFJat.pngMy goal is to use Selenium and Python for web scraping. I am currently using Chrome version 123.0.6312.87 with a compatible web driver. Specifically, I am interested in extracting data from the following page: "https://we ...

Exploring the transition from the elements tab to the network tab in Selenium Webdriver utilizing the '--auto-open-devtools-for-tabs' feature

When running selenium automation, I have utilized the '--auto-open-devtools-for-tabs' to automatically open the developer's console. However, it always opens in the Elements tab by default. Is there a way to switch to the Network tab or Cons ...

Encountering a connection issue while trying to reach host 127.0.0.1 through port 7055 after 45000 ms on selenium web driver

Today, I encountered some errors while running a sample script using Selenium version 2.47.1 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Error: no display spec ...

Perform a conditional post-build action in Jenkins without relying on plugins

It seems like I have the ability to make a build step conditional using this interesting plugin: link I'm wondering if this plugin also works for Post-Build steps. Is there a way to make Post-Build steps conditional without relying on a plugin? The situa ...

Can TestNG allow for the implementation of global parameters?

Currently in the process of automating a web app using Selenium WebDriver framework along with TestNG. Looking to assign parameters for each test classes in the testing.xml file, however most resources online only show how to set predefined parameters for ...

Having trouble with your Selenium WebDriver JUnit test?

I encountered an error in my script. Could this indicate a missing jar file that needs to be included in the library, or is it something else? ...

Guidance on invoking a function/method from one class to another in Selenium WebDriver using Java

I need to invoke the login and search methods from two distinct classes into the main class. I have created separate classes for login and search, but when I try to call both methods in the class that contains the main method, I encounter the following err ...

Selenium: Automatically setting the referer Header in Selenium

When using Selenium RC with Chrome, I have encountered an issue where each time Selenium opens a new chrome instance, it automatically sets the HTTP referer Header to a specific value. My web application validates the referer to ensure it contains valid l ...

What are the steps for setting up and executing NUnit/WebDriver test suites in Visual Studio?

After transitioning from a Java-JUnit4-Webdriver setup to a C#-NUnit-Webdriver one, I found myself missing the convenience of creating test suites in Eclipse. In Eclipse, I could easily compile test classes into a test-suite class and run them as JUnit tes ...

Having difficulty configuring Firefox profile, proxy settings, and authentication using Java

Hello Selenium Webdriver Experts, I've made adjustments to my Firefox profile setup in hopes of integrating FireBug when launching Firefox through Selenium Webdriver 2: public static void main(String[] args) { File fireBugFile = new File("C:/se ...

Selenium is throwing an ElementNotInteractableError indicating that the element is not able to be

Today I decided to dive into learning Selenium, but I've hit a roadblock while trying to click on an element that looks like this: <a rel="nofollow" style="" href="javascript:void(0);" time="" itemid="1523208 ...

Locate the text of an element that is not visible on the screen while the code is running

Currently, I am diving into the world of web scraping using Selenium. To get some practical experience, I decided to extract promotions from this specific site: https://i.stack.imgur.com/zKEDM.jpg This is the code I have been working on: from selenium im ...

When I manually open the dropdown list on this site, the number of options displayed differs from when I use automation to open it

I am currently working on automating tasks on https://ttsreader.com/legacy/. However, I have noticed that the site presents varying options when accessed manually compared to when accessed through automation. Specifically, only a limited number of options ...

Having difficulty accessing the VR Path Registry

Software Version: geckodriver-v0.20.0-win64 Operating System: Windows 10 Home Single Web Browser: Firefox: 59.0.2 (64-bits) Selenium Software: selenium-java-3.11.0 IDE: intelliJ Idea : 2018.1 Community Edition Greetings! I have recently started using We ...

The Python Selenium test passes without issue when executed on its own, but encounters a Chromedriver error when included in the defaultTestLoader

While conducting a Selenium Test in Python, I encountered an issue. The test file runs successfully, but when attempting to run a testLoader with that test, an error occurs: selenium.common.exceptions.SessionNotCreatedException: Message: session not create ...

Is there a way to extract a list of words from a designated element using selenium?

I have been trying to scrape the content of this webpage 10 Fast Fingers in order to extract the words that need to be typed into a list. My intention is to then input these words into a text box for typing practice. The code seems to be running fine, but ...

Guide to setting up a parameterized Selenium test using NUnit on TeamCity?

I am currently developing Selenium webdriver tests in Visual Studio with C# for regression testing. I have chosen NUnit as my testing framework. My goal is to parameterize the URL so that the same set of tests can be executed against various deployments u ...

Executing web driver and Tor in Java

Is it possible to connect to Tor using PhantomJS or HtmlUnit driver in addition to Firefox driver? For PhantomJS, I attempted the following code: String[] phantomArgs = new String[] { "--webdriver-loglevel=NONE", "--webdriver=localhost:9150" }; ...

Utilizing Selenium, Kotlin, and PageFactory to instantiate a collection of web elements

I've been experimenting with PageFactory and Selenium, but I'm encountering difficulties when dealing with lists of elements. Here's the code snippet causing me trouble: @FindBy(css = "timeline-instances [data-e2e-selector=inst]") lateinit var t ...

Is it feasible to create dynamic attributes?

How can I make the attribute dynamic? Please guide me on how to achieve this. driver.findElement(By.**name**("username")) In the scenario above, I need to make the attribute "name" dynamic. Is it possible to accomplish this and if so, could you provide co ...

Error: Can const be used in strict mode?

Currently, I am attempting to log in to facebook.com using selenium-webdriver. var webdriver = require('selenium-webdriver'), By = require('selenium-webdriver').By, until = require('selenium-webdriver').until; var driver = new webdriver.Builder() ...

What is the process for extracting the download button URL and parsing a CSV file in Python?

In my Python Google Colab project, I am attempting to access a CSV file from the following link: After scrolling down slightly on the page, there is a download button visible. My goal is to extract the link using Selenium or BeautifulSoup in order to read ...

Selecting an item from a drop-down menu using WebDriver in Java - the ultimate guide!

Having a dropdown button, clicking it will open a list of items to choose from. Here's the HTML: <button id="btn-append-to-body" class="btn btn-primary mobile-quick-button dropdown-toggle" type="button" uib-dropdown-toggle="" aria-haspopup="true" aria- ...

The anticipated condition was not met as we were waiting for the element located by the XPath to become visible

public class ProgramDemoQA { public static WebDriver d; public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "D:\\RamanaSoft&bso ...

Automating without a head using Node.js and the Selenium Webdriver

Currently, I am in the process of working with an automation tool that needs to be deployed within an Ubuntu server. My main query pertains to the possibility of utilizing Chrome silently with Selenium Webdriver. Despite attempting the code provided below ...

Python script utilizing Selenium is returning an empty string when trying to extract data from

When I try to retrieve the value from a dynamically loading table by clicking on the TD element, it works fine. However, when I attempt to fetch the text from the same TD element, it returns an empty string despite trying XPATH and CSS Selector methods. H ...

Integrating Points of Interest (POI) with the Selenium Web

My goal is to incorporate POI integration into my automation testing using selenium webdriver. In the past, I relied on Excel 2003 & Jxl for this task. Now, I am looking to switch to Excel 2013 & POI. Is it feasible to make this transition? 2. How ...

Is it possible to still encounter a NoSuchElementException even after trying to handle it?

I'm confused as to why a NoSuchElementException is still being thrown in my Webdriver test? Is there anyone who can help debug or suggest a more efficient/robust solution? Note - I encounter the same error if I attempt driver.findElements(By.id("...")).s ...

Utilizing Selenium to extract information from a data table

I am facing a challenge with extracting data from a paginated table using Selenium. Despite having code that can successfully retrieve data, it only grabs the first 50 results out of the entire table. I believe utilizing Selenium to iterate through all p ...

Executing tests with Selenium webdriver when the browser is minimized can be done by adjusting the browser window

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 ...

Tips on selectively crawling specific URLs from a CSV document using Python

I am working with a CSV file that contains various URLs with different domain extensions such as .com, .eu, .org, and more. My goal is to only crawl domains with the .nl extension by using the condition if '.nl' in row: in Python 2.7. from selen ...

Challenges with Data Extraction on LinkedIn Sales Navigator

Attempting to extract information on various companies and their leads from the LinkedIn Sales Navigator has been a challenge for me. In order to log in, I have set up a textfile named config.txt which stores my username and password. However, each time I ...

Having trouble with selecting multiple checkboxes with Selenium Webdriver

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 ...

Steps for downloading a PDF file in Chrome with Selenium WebDriver

I need help with downloading a PDF in Chrome using Selenium. System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir") + System.getProperty("file.separator") + "BrowserDrivers" + System.get ...

Evade the pop-up warning in IE 10 when downloading, or utilize the save button with Selenium Webdriver in C#

How can we use Selenium - WebDriver (C#) to click on the save button of an IE 10 warning message that appears when trying to download a file? If clicking is not an option, how can we disable this warning without needing to alter the system registry so tha ...

Simplify your browsing experience by automating Google Chrome keyboard shortcuts with Selenium

For the automation task at hand, I am utilizing Chrome Keyboard shortcuts such as Ctrl+t and Ctrl+Tab with Selenium driver in Python. Various methods have been attempted to incorporate keyboard shortcuts: driver.find_element_by_tag_name('html') ...

The issue of Selenium crashing in Docker because the browsing context has been discarded

Looking for a solution on how to execute Selenium based tests within Docker? I'm experimenting with running Python+Selenium tests that utilize Firefox and Geckodriver in an Ubuntu 18 Docker container. The contents of my docker-compose.yml file are as fol ...

What could be causing my XPath locator to not function properly?

While trying to locate this element driver.get("https://ivtripadmindev.azurewebsites.net/login"); driver.findElement(By.xpath("//*[@id=\"root\"]/div[2]/div/div/div/div[2]/form/div[1]/input")).sendKeys("5"); Encountering the following Exception e ...

experiencing trouble with selenium webdriver unable to locate and interact with a specific button | bootstrap framework

I am currently working with a chrome web-based application that utilizes bootstrap. This presents a challenge when attempting to retrieve the xpath or cssselector of an element using dev tools. Below is the code snippet for a button I am trying to click: ...

Having difficulty locating an element that includes certain text

There is a snippet of code from the page: <label> <input type="checkbox"> </input> " some text" </label> I am trying to locate an element that contains the text "some text". If I use WebElement().ByXPath("//div/label[ ...

After refreshing the page, I am looking to choose the next web element. What is the best way to proceed with this task?

While working with Selenium, I am encountering an issue where after selecting a webelement from a dropdown list using the select class, the page refreshes and the webelement is reset to its default value. How can I ensure that I am able to select the nex ...