Questions tagged [selenium-rc]

Selenium Remote Control - The Solution for Automated Web Testing at the User Interface Level

use selenium to choose an element

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

Establishing a connection to the existing Selenium browser window using the session ID

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 it possible to pass values using sendkeys in Selenium in order to select an item from a Bootstrap dropdown menu?

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

Setting up the configuration for a Selenium node-hubStateToProps

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

Contrasting Selenium RC with WebDriver

Can you explain the key distinction between Selenium RC and WebDriver? ...

Scan through the rows in an Excel spreadsheet and automatically transfer the information into a text box on a webpage

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

The command window does not close after running tests in IE with Selenium

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

Unlocking subsequent matches with XPath in Selenium RC

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

Basic Selenium Test Triggers XMLHttpRequest ERROR : 404

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

Effective strategies for organizing Selenium RC tests into modular components

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

Automating IE with Selenium in a scheduled task using RC

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

Looking for advice on automating Facebook integration testing?

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

Using Selenium RC with Hudson

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

Steps for removing a Selenium node from a Grid

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

Problems with Selenium RC, Nunit, and Firefox causing browser crashes when clicking

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

Selenium is an invaluable tool for automatically navigating web pages and testing

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

Initiate the Selenium RC server with auto-start capabilities

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

Selenium customer refuses to shut down

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

Using Python Selenium to Download an Image to a Local Directory

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

Difficulty with automating tests using selenium in Linux: Unable to automatically close Firefox browser

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

Utilize the second browser that is currently open for better productivity

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

How can one choose a selenium element using parentheses and its name?

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

Exploring the method to iterate with Selenium RC directly on XPath search outcomes

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

Unable to initiate IE8 on Windows 7 with Selenium

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

I'm having trouble with the formatting of the XPath, as I keep receiving an error message. Can

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

Ways to determine the version of the Selenium RC server

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

Why isn't my Selenium Java test script displaying a basic confirmation message as intended?

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

The functions in Webdriverbackedselenium are unable to interact with selenium commands

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

Is there a way to execute a TestNG/Selenium test suite concurrently in Internet Explorer across various servers?

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

Steps for reusing a selenium browser sessionIs it possible to reuse

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

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

"Incompatibility between Ruby + watir-webdriver and Selenium Grid2 causes an exception

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

Selenium is unable to locate an element using Jquery

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]') ...

What is the best way to capture selenium rc scripts in a pop-up window?

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

What is the method of communication between Selenium RC and the browser?

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

Can someone explain the purpose of the sel.open('/') statement in this code snippet?

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