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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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" }; ...
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 ...
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 ...
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() ...
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 ...
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- ...
public class ProgramDemoQA { public static WebDriver d; public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "D:\\RamanaSoft&bso ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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') ...
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 ...
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 ...
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: ...
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[ ...
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 ...