Despite trying with both version 32 and the latest version of Firefox, Selenium is still not opening the specified Firefox Profile. Instead, it consistently opens a temporary profile. ProfilesIni profile = new ProfilesIni(); FirefoxProfile myprofile = ...
I have successfully implemented code using Chrome and WebDriverManager. But now, I am curious if it's feasible to switch the browser Selenium is utilizing from Chrome to Edge? Can this transition be accomplished with just one line of code (modifying ...
I'm having trouble clicking on the Select Files button that is nested within a SPAN and Input Tag. Despite using Xpath, Id, and Name, I am unable to successfully click on the button. <span> Select <u>a</u> Files... </span> <in ...
Previously, this code was functioning correctly, but now when I run it, I consistently encounter an exception. The purpose of the code was to input a search query into the YouTube search bar and then click on the search button. Code: WebDriver driver = n ...
Do these actions exclusively impact findElement? To clarify, in a scenario where I need to test for an element that isn't present on the page, should I resort to using findElement (even if it may be slow due to implicit waiting) or is there a viable a ...
When running Selenium tests on a webpage, I often encounter reliability issues because the page is still processing "Vue" when the code begins searching for elements. It's essential to wait until Vue finishes loading before proceeding further. Is the ...
Is it possible to have two separate 'Cookie' sessions with the same browser in WebDriver? I made changes in my TestNG file to run two test classes simultaneously using two different threads. The problem arises when both scripts try to log into an acc ...
While using the Chrome driver in Selenium, I encountered an error when handling an alert pop up. Exception in thread "main" org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : Save successfully.} Situation: The error occurs ...
While attempting to retrieve the status of transactions from a web portal, I encountered an issue using the following Chrome settings in my Java application: Error: Timed out receiving message from renderer after 60 seconds. This resulted in all pendin ...
I am new to using Geb. If my question is incorrect, I apologize. Currently, I am attempting to click a button located inside an iFrame on the CompaniesListPage and navigate to the AddCompanyPage. When dealing with a traditional button outside of the iFra ...
Here is the element I am working with: String sId = driver.findElement(By.xpath(path)).getAttribute("data-id"); Now that the attribute value is stored in "sId", my goal is to instruct Selenium to wait until the data-id attribute value is NOT equal to sID ...
Can someone please assist me with the following scenario: I need to complete a double entry check prompt/alert that contains two text boxes. The task is to fill in these two text boxes and then click on the OK button. Potential solutions attempted: I tr ...
Trying to execute the sample test provided at https://code.google.com/p/selenium/wiki/AndroidDriver#Run_the_Tests on an Android emulator (Mac) is causing issues during the test run. After setting up an emulator and installing the WebDriver APK, creating a ...
A situation has arisen where I have properly set up Properties files and initialized the Webdriver object in a particular class. Now, my aim is to utilize this Webdriver object either within the same package or in another package. Can you guide me on how t ...
const readline = require('readline'); let favoriteFood; const rl = readline.createInterface(process.stdin, process.stdout); rl.question('What is your favorite food?', function(answer) { console.log('Oh, so your favorite food is ' + answer); favoriteFood ...
Can someone please help me with two questions I have? 1) I'm curious about why there isn't a Firefox driver [.exe] available for running selenium2.0, like there is for IE and Chrome. 2) Why is it necessary to initialize the IE and Chrome drivers when wor ...
from selenium import webdriver import os os.chdir("C:\Users\czoca\PycharmProjects\pythonProject4") driver = webdriver.Chrome() driver.get("https://www.sitetoscrape.com/page1.html") driver.implicitly_wait(10) element1 = driver.find_element(By.ID, "Allo ...
I've developed a selenium script using python 3. The script needs to run daily at 7AM for approximately 5 minutes. However, I don't want to keep my laptop running all the time just for this task. Can anyone suggest an alternative that is convenie ...
Despite using the latest versions listed below, I am still encountering the issue mentioned above. Can anyone provide assistance? Eclipse IDE Version: 2019-12 (4.14.0); WebDriver (Java) - 3.141.59 ChromeDriver 79.0.3945.36 Below is the code snippet: pa ...
When attempting to find an element with specific CSS and inner text, I am facing a challenge. There are multiple elements that meet the CSS condition (visible or invisible), and Selenium's ExpectedConditions function is not working as expected. If I first ...
I'm struggling to figure out how to extract only the first 3 <td> elements from each row in a table using Selenium and web driver. For example, I need to get 'Vanessa 17 Sociology', 'Mike 18 Maths' and 'Sam 18 English' <table id= "table3"> ...
Hey there, I'm a beginner when it comes to Webdriver and Junit. I've been searching for a solution to this puzzle but haven't had any luck so far. I declared my driver as Static Webdriver fd at the top and tried running test cases on single ...
Can Protractor/Webdriver be used to monitor $http/AJAX requests made by the browser? Is there a method for retrieving the request sent to $http-backend? ...
In the past, I was familiar with Selenium and WebDriver, which allowed for manipulating webpage elements like Textfields and Buttons through code. However, I'm uncertain if these tools are still available or relevant today. For instance, imagine I ha ...
Is there a place to download the Firefox driver for Selenium? I have checked this link, but I couldn't find the driver file for download: https://code.google.com/p/selenium/wiki/FirefoxDriver NOTE: I already have Selenium Webdriver IDE for Firefox, ...
I am facing a challenge in testing my code where there is a dynamic submit button that requires clicking. Despite the changing ID name, I need to figure out how to click on this button using my selenium script without relying on an ID. <td> < ...
I have a group of test cases that have been automated using Selenium scripts in C# with NUnit. I am able to run these tests individually, but now I need to run them simultaneously. Can anyone provide guidance on how to achieve parallel execution for thes ...
I am facing an issue with selecting a checkbox using Selenium. Here is the HTML structure: <input id="diDataCheck" ng-model="$parent.DIDATA.IsSet" name="Mode" type="checkbox" class="ng-pristine ng-untouched ng-valid ng-empty" xpath="1"> Despite try ...
While I understand the distinction between assert and verify, I am curious about the syntax of verify in Selenium Web Driver with Java. Can anyone provide some guidance? ...
I have encountered a challenge while working on a page that features a small frame at the top. This is causing some difficulties when the firefoxdriver attempts to scroll to a specific element, as it tends to position the element at the very top of the pag ...
I am currently facing an issue with switching frames in my application. There are multiple inner frames, making it difficult to use driver.switchTo().defaultContent(). In a helpful discussion, a possible solution is suggested - remembering all visited fram ...
Having issues with Chrome when running C# webdriver. Whenever I try to click a link that opens a popup, the click command waits for about 30 seconds and then fails. http://localhost:48808/session/92d33d6032c3ac55cb8dc903adc2297b/element/:wdc:131851574 ...
Attempting to utilize an Android driver within Selenium has presented a perplexing error that leaves me stumped. I have both an operational Appium Server and an active Android Emulator (from Android Studio) identified as "emulator-5554" when queried with " ...
Seeking to locate an element with a data-stock value higher than 0. The following code is useful for finding elements with specific stock values: findElement(By.xpath("//div[@data-stock='2']) However, as the stock is constantly changing, I ...
When attempting to retrieve the contents of a textarea within an HTML form using webdriver in Python, I am able to get the text, but the newlines are missing. Despite consulting the selenium docs, which provide limited information: class selenium.webdrive ...
After successfully setting up a browser automation project using Selenium WebDriver on one machine, I encountered issues when trying to run it on another. The browser (Firefox) opens but the automation does not happen as expected. Upon timing out, an error ...
Issues with the moveToElement function in WebDriver have been noticed specifically in Firefox and IE, while working smoothly in Chrome browser. Below is the code snippet that I am currently using: Actions builder = new Actions(driver); builder.mov ...
I attempted the usual var elementForMs = driver.findElement(By.xpath(selector)); driver.executeScript("arguments[0].click()", elementForMs); as well as var elementForMs = driver.findElement(By.css(selector)); driver.executeScript("arguments[0].click()" ...
I have a Maven test project that is both keyword driven and data driven using JUnit. After executing the quit keyword, chrome tabs are opening automatically. I am currently using the Chrome browser. I attempted to terminate the process in Eclipse, but th ...
Currently, I am experimenting with testing content in Google Documents using Selenium Webdriver. Some of my tests require selecting individual words within a Google document and then applying actions such as bolding the word or changing the font type. I w ...
My WebDriver scripts work perfectly fine with Firefox and Chrome, but encounter failures when running on Internet Explorer. I am experiencing issues with the Window Handling Mechanisms. Below is the code snippet: public void windowSwitching() { Hash ...
I am having trouble retrieving the options displayed in a dropdown menu because I cannot find any listed options in the source code. The element looks like this: <div id="trigger-picker" class="x-form-trigger x-form-trigger-default x-form-arrow-trigge ...
Is it possible in Ruby Eclipse to have a similar feature as in Eclipse Java where all available methods and variables are displayed when typing "." for external library methods? ...
I am new to using selenium-cucumber and facing an issue with a Null pointer exception when trying to automate a web application. I have created page objects and used findelements to retrieve elements, which is causing the error. Any insights on this probl ...
Working with Java in Eclipse using Selenium WebDriver, I am looking for a way to wait for a command to be successfully executed without specifying a specific amount of time like Thread.sleep(). Ideally, I want the command to be executed immediately after ...
I am currently facing an issue using the Selenium WebDriver Extensions in C# to select a value from a select list by matching partial text. Despite trying different approaches, I can't seem to get it to work as expected. Could this be a mistake on my end o ...
I am facing a challenge in my selenium project with Chrome as the driver. Whenever I attempt to combine headless mode with an extension, I encounter an error. System.InvalidOperationException occurred HResult=0x80131509 Message=unknown error: fail ...
Utilizing Selenium WebDriver alongside Chrome WebDriver, my script1 captures a URL from the driver.get(" ...") method and performs various tasks like web scraping (such as clicking buttons, extracting information, and logging into a website). Af ...
As an example, let's consider a scenario where we have a selector to target the active menu item: $("ul#menu li a[href='/']") And a selector to target the remaining menu items (1): $("ul#menu li a:not([href='/'])") However, the use of ":not" in selecto ...
Be sure to hover over the menu first before trying to click on the element! The element is currently not visible and cannot be interacted with (WARNING: The server did not provide any stacktrace information) error on Selenium I have attempted the followi ...
Attempting to run a simple test: from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Firefox() driver.get('http://google.com') driver.find_element_by_name('q') driver.send_keys('hey') Encountering the follow ...
What is the best way to define the executable path of the Chrome driver to match the operating system's path? I am aiming to create a universal executable path that works across all systems for the Selenium with Python driver. ...
My current goal is to access the application running on a single container via webdriverio for testing purposes. I have successfully achieved this locally by following these steps: yarn start // initiates the app on htpp://localhost:3000 yarn test // exe ...
When working with Sauce Labs, there is a specific :passed option available for reporting the pass/fail status of a test - you can find more information about this at . I'm struggling to understand how to implement this feature in Ruby. One approach I've ...
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'm relatively new to using Selenium WebDriver and I've encountered an issue with a notification popping up on Facebook while attempting to log in. Despite searching extensively, I haven't been able to find a solution that works for me. I ca ...
What is the process for creating a batch file to run Selenium Webdriver projects in Java? I have successfully created executable jar files by using File > Export > Java > Runnable Jar, but I am interested in creating a BATCH File. Any assistance would be ...
As someone new to Java and remote activities, I appreciate your patience. I've been tasked with running a Java script that mimics user actions on my company's website all day long. Are there any services besides TestingBot and Browserstack that offer auto ...
One of the challenges I'm facing involves a series of div blocks that can be clicked to reveal hidden content in an accordion format. Using Selenium, my goal is to cycle through these blocks, opening each one before capturing a screenshot. However, I am s ...
Whenever I execute my tests using TestNG, multiple browser instances are launched before the tests begin. This is how my testng.xml file looks: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> ...
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 ...
Having issues with my Selenium script that is supposed to repeatedly click on a cookie on a webpage. However, it only clicks once even though I have wrapped it in a loop. Can someone please help me figure out what I am doing wrong? from selenium import w ...
My first time using Selenium and I'm struggling to locate my TextField element. I've tried using By.id("originTextField"), as well as the xPath and cssSelector provided by Chrome's dev tools. If anyone could provide an explanation, I would greatly appreci ...
I attempted to extract data from a webpage using Python and Selenium: from selenium import webdriver driver=webdriver.Firefox() driver.get('https://covid19.min-saude.pt/ponto-de-situacao-atual-em-portugal/') 'RECUPERADOS' in driver.page ...
Is there a way to verify that a GET request for an image, such as , has been successfully received and processed in Selenium 2 WebDriver with PHP? My initial approach was to make an XHR request and then alert() the responseText, using assertEquals to comp ...
Can someone help me inspect the textboxes and button? I need to use the sendkeys function for the textbox. Sample HTML Code : <!DOCTYPE html> <html> <body> <h2>HTML Forms</h2> <form action="/action_page.php"> Fir ...
Currently, I am facing an issue with logging into Dropbox using the official Dropbox API in order to upload a file. The problem lies in the code not clicking on the submit button for login authentication. Rather than producing an error, the code simply han ...
If my HTML looks like this <select class="list"> <option val="00"></option> <option val="01">One</option> </select> Although the JavaScript test file is running successfully, I am attempting to determine the number ...
Dealing with the print dialog (the one that pops up when pressing ctrl-p in a browser) is proving to be a challenge for me. I attempted to dismiss it using: Alert printDialog = driver.switchTo().alert(); printDialog.dismiss(); Unfortunately, this method ...
from selenium import webdriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait url = "https://www.electionreturns.pa.gov/General/OfficeRe ...
Currently working with Selenium IE Webdriver, I am trying to remove the line "This is the initial page of webdriver server." from the IEDriverServer.exe file. I edited the IEDriverServer.exe file in notepad++ by deleting that specific line and then added i ...
Attempting to retrieve and interact with pop-up/alert elements using selenium in Java has been a bit challenging for me. Below is the code snippet I have been working on: import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import ...
Currently, I am delving into the world of selenium webdriver automation and have encountered an issue with the sendKeys command not working on Password type fields. After doing some research online, it seems like others are also facing the same problem but ...
I am currently attempting to iterate through a list of anchor links on a web page and click on each link one at a time. I have successfully listed all the links and displayed them using the GetAttribute method, however, I am facing difficulties in actually ...
Hello, I currently have a setup with my framework that involves the following: ClassA { // This class receives Selenium WebDriver calls through the 'driver' object reference to interact with UI elements public WebDriver get() { return ...