I'm attempting to target a specific element in the HTML code below: <ul class="selectReplace opened"> <li class="default">Standard pizzas</li> <li class="first">Standard pizzas</li> <li class="">Special pizzas</li> ...
I'm exploring ways to connect to an already existing browser window using Selenium RC. I came across a post on Exposing the selenium browser session id, which suggests that by obtaining the current session in Selenium RC, this can be achieved. Has an ...
Is there a way to pass values for a bootstrap drop down menu using Selenium instead of selecting them? Can we use sendKeys in Selenium to achieve this? I need to input values CSS, HTML, JavaScript without manually selecting them during automation. <d ...
I have a specific setup in my /etc/rc.local file that includes running Xvfb and launching a Selenium server on specified ports. Xvfb :99 -screen 0 1024x768x24 -ac 2>&1 >/dev/null & export DISPLAY=:99 java -jar /home/ubuntu/selenium-server-st ...
Can you explain the key distinction between Selenium RC and WebDriver? ...
Seeking advice on how to read an excel sheet from my local drive "C:\company_names.xls" and populate the data into text boxes on a webpage. Here is the test case scenario: 1) The webpage should open in Firefox. 2) Click on the left navigation tab la ...
We have encountered an issue with our Maven-based Selenium project for GUI testing. Following test execution, Internet Explorer is unable to close the Selenium command window. Despite using selenium.stop(); in the @After method, the command window remains ...
I currently have a total of 20 labels displayed on my page: In [85]: sel.get_xpath_count("//label") Out[85]: u'20' By default, I am able to retrieve the text from the first label like this: In [86]: sel.get_text("xpath=//label") Out[86]: u'First label:' ...
I am currently using selenium-rc with C# to conduct tests on my asp.net mvc2 application. At the moment, my test only involves opening the home page using selenium RC. When running the test, I notice that the selenium remote control opens in a browser and ...
Currently, I am challenged with re-factoring my Selenium RC test scripts written in Visual Studio using C#. All my tests are currently located within a single file, and I am seeking advice, recommendations, or resources on how to modularize these tests eff ...
Looking to automate a task with Selenium-RC without the need for the user to be logged in. The ideal scenario involves running Selenium as a scheduled task, launching IE and executing the script seamlessly. Is it possible to simulate user interactions wit ...
Given the widespread use of Facebook login/connect for website authentication, is there a standard recommendation from Facebook or other sources on automating the process? This would involve clicking the Facebook button to bring up a popup, switching to th ...
Looking to integrate Selenium into Hudson and run a test using a .dll written in C# - is there a way to do this? Appreciate any guidance or suggestions. Thanks! ...
I am in charge of managing a Selenium Grid and I need to find a way to remove or unregister a node from the Grid using a command line or similar method. Unfortunately, I do not have direct access to the PC that is registered as a selenium Node, but I can s ...
In the process of testing a sophisticated web application, we are utilizing a test framework that consists of C#, Nunit 2.5.10 and Selenium RC 2.24.1 (Unfortunately, switching to WebDriver is not currently an option). After revamping our application' ...
My selenium code snippet: selenium.type("document.forms['UploadForm'].elements['browse']",file.getAbsolutePath()); selenium.click("document.forms['UploadForm'].elements['submit']"); I have several forms with browse buttons labeled as "browse" and submit ...
Is there a way to automate the starting and stopping of the Selenium RC server while running phpunit tests? I was thinking of creating a bash script like this (which unfortunately does not work): java -jar ~/bin/selenium-server-standalone-2.0b3.jar & ...
Recently, we updated Selenium from version 0.9.x to 2.17 without making changes in the code to use the new web driver. As a result, we are still using: BrowserConfigurationOptions options = new BrowserConfigurationOptions(); options.setSingleWindow(); opt ...
What is the best way to transfer an image from a source to a local folder using Python with Selenium? I could use some assistance, thank you in advance. ...
When conducting automation testing for web GUI in Linux using Selenium (Selenium RC), I encountered an issue. While running Selenium tests on Windows yielded successful results with Firefox closing automatically after completing the test, the same could no ...
Just started using selenium and faced with an issue. I am currently dealing with a form where clicking "Report" opens a new browser window displaying some data. I need to interact with this data. How can I retrieve and validate the displayed information? ...
I have a specific input element that I need help with: <input name='selected(1234)' type="checkbox" /> However, when I try to record an action on this element, I encounter an issue: Command: click Target: selected(1234) Unfortunately, t ...
As of now, I find myself resorting to the method of first performing a get_xpath_count, and then setting up a loop that increases an index variable. This variable is injected back into the original xpath to select the nth result... all in all, a very cumbe ...
I am currently running Windows 7 32 bit with IE 8 32 bit. Strangely, when attempting to run the tests using *iexplore, a blank window appears. However, in XP with IE 7, the tests run smoothly without any issues as shown in the image below. Is there any so ...
While specifying the XPath for elements that selenium should click, do I need to provide the full path? An error is currently being thrown at this point: IWebElement gridElement = driver.FindElement(By.XPath("//div[@class='sc-80905d34-2 gGhuiq&ap ...
I am currently utilizing selenium2 RC along with the python client (selenium.py) and I am in search of a way to retrieve the version of the selenium installed on the server. Can anyone advise if there is a command that can be sent to the server to fetch ...
I've been working on completing a test script in Java and everything is functioning perfectly. The goal is to display a confirmation message indicating that the account creation was successful after all the preceding steps have run. In order to achieve th ...
In my code, there is a method named test which consists of defining a Webdriver object as shown below: FirefoxProfile firefoxprofile = new FirefoxProfile(); firefoxprofile.setAssumeUntrustedCertificateIssuer(false); WebDriver driver = new FirefoxDriver(fi ...
Currently, I am working with a Selenium test suite that utilizes the IEDriver and is executed using TestNG. The main objective is to use this test suite for regression testing. My aim is to run this test suite against all of our production servers. Present ...
I'm facing an issue while trying to access a pre-existing selenium browser session from a separate python process. The reuse logic works perfectly within the same python script, but fails when separated into a different script, displaying 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 ...
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 ...
sel.add_script( sel.get_location(), "jquery.js") #I am getting u'fd6c42bcc770ca9decc4f358df3688290a4257ad' idOfResultWithSomeImage=sel.get_eval("window.jQuery('#result').find('img').filter('[alt=SeleImage]') ...
I'm experiencing an issue where my website is opening in a popup window, causing all the functionality to be contained within that same window. Unfortunately, I'm having trouble recording the Selenium RC scripts because it doesn't recognize the popup win ...
Can you explain the process by which selenium commands are sent to the browser? I understand that selenium proxies requests to URLs and injects the selenium core JS API into the response, but how exactly does a command like "click" reach the browser? In ...
What is the purpose of using the sel.open('/') command? sel = selenium('localhost', 4444, '*firefox', 'http://www.google.com/') sel.start() sel.open('/') sel.wait_for_page_to_load(10000) sel.stop() Could someone provide an explanation of what each of the ...