selenium

Writing Logs/results or generating reports using Selenuim C# API

Hi All, I am testing the web application using Selenium RC. All things works fine and I have written many test cases and executing these test cases using Nunit. Now the hurdle that i am facing is how to keep track of failures or how to generate the Reports ? Please advice which could be best way to capture this. Thanks in Advance...

Check javascript error in selenium

I have Selenium tests in PHP under PHPUnit run via CruiseControl. Is it somehow possible to check if there was a JavaScript error on the page? ...

Selenium issues with IE tests

When I change mt test browser to IE using the following line of code: self.selenium = selenium("localhost", 4444, "*iexplore", "http://www.mydomain.net/") I get the following error: Exception: Failed to start new browser session: java.lang.RuntimeException: SystemRoot apparently not set! It works perfectly fine using firefox and Ch...

Can we run selenium tests in GWT dev mode?

The subj. Thanks in advance! ...

how to Clear or replace contents of input field using selenium?

Hi How can i clear the contents of an input field using ruby selenium? i.e when page loads up there are values in the input filed but i want to replace them with new ones. thank you ...

Trouble using Selenium Grid/RC with Python.

I have built a couple of test cases as stand alone python classes using Selenium. I can run each of them using Selenium RC. Ultimately I want to use Selenium Grid to run all of the test cases. How would I do this? Do I need some kind of wrapper to hold of of the python test cases together? How do I get Selenium Grid to run a collectio...

selenium RC ruby, wait for hidden element to appear?

Hi I was just wondering how i can wait for a hidden element to appear on the page, i triedni seleum.is_element_present but it dosent seem to be working. thanks ...

What would you recommend for integration testing on PHP web application?

Hi there, I have been testing for a web-application written in PHP and JavaScript, and I am looking for integration testing tools that can be well communicated with a continuous integration server, potentially phpUnderControl. As an integration testing tool, I have used Selenium with Rspec which works just fine. This produces html file...

How to use Firefox on Win from Selenium-rc on Linux

I am using phpunit 3.4.15. On Centos 5.3 linux I started Selenium server 1.0.3: java -jar selenium-server.jar I would like to call a browser running on Windows to run the test. This is the script I try to run: <?php require_once 'PHPUnit/Extensions/SeleniumTestCase.php'; class Example extends PHPUnit_Extensions_SeleniumTestCase { ...

jQuery events not being called when triggering 'change' event via fireEvent.

Problem appears on IE7-8. Here is simple demonstration: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> // Selenium's trigger from scripts/htmlutils.js function triggerEvent(element, ev...

How do you store an elements text with selenium in a javascript variable?

I have this html: <div class="title"> <div class="subtitle"> <div id="flhcd1> <h3>Hello</h3> <span></span> </div> <div class="subtitle2"> </div> </div> I want to be able to use selenium and javascript to store the text in the <h3> (Hello) in the variable titleText . I will be using this code in browsermob for monitoring tests. ...

How can I print javascript objects?

I have an object var object= {} I put some data in the object and then I want to print it like this document.write(object.term); the term is a variable that changes depending on different situations. When I try printing this it comes up with undefined. How would it be done? Update: this is the code I am dealing with. I guess it ...

Using htmlagility xpath's to find webdriver elements

I'm using htmlagility pack to locate elements in large loops through tables because its much faster than using the native methods provided through webdriver. After locating a specific element through the looping I'm getting its xpath, then feeding that to webdriver to return an element. However I'm getting an exception; OpenQA.Sel...

Selenium - error in run test by testRunner

Hi have problem i create test when i run it from selenium IDE everything is ok, test be passed. When i run my test by selenium testRunner the page was opened but any command eg. clickandwait cannot run in log error "Illegal operation on WrappedNative prototype object". Any idea? ...

Driving multiple browsers that interact with eachother

Hi, We have a complex web application which uses a lot of JavaScript along with XMPP and a Rails application. It has come to the point where we need to test the entire system end-to-end. We need to be able to ensure various tasks can be completed without errors, one such task would be to negotiate a 1-on-1 chat session with another part...

Multi-Test TestNG.xml file results in java.lang.NullPointerException

Multi-Test TestNG.xml file results in java.lang.NullPointerException Hello Quality Team, I need help getting TestNG to run multiple tests from one XML file. So far my efforts to do this result in a java.lang.NullPointerException OR the test(s) fake_execute="says it ran...but how can it have run if it didn't start selenium?" One final...

Selenium IDE: Click on a particular item by name (not the XPath)

Hi I've recorded a Test Case in Selenium IDE where I access to a newspaper and click on a certain element (a link to a blog by KEITH DUGGAN). The commands recorded are these: open | h t t p://www.irishtimes.com/ clickAndWait | link=Sport clickAndWait | //div[@id='content']/div[2]/div[2]/div[2]/ul/li[3]/a/span h t t p://img180.images...

Selenium 2 WebDriver - Chrome - Getting the value from a text box that is set via JavaScript

Hi, I am using Selenium 2 (latest release from Googlecode) and I have it firing up Chrome and going to a url. When the page has loaded some javascript executes to set the value of a textbox. I tell it to find a textbox by id which it does but it doesn't have the value within it (if I hardcode a value it finds it). Looking at the Pag...

How VerifyTextPresent command can be used in Selenium?

Hello there, how i can write VerifyTextPresent command in selenium IDE, and what shall be its procedure like i am writing VerifyTextPresent="welcome" to verify a text is present , it is returning an error, am i writing in correct format? kindly guide regards, Shoaib ...

Run Selenium Test Automatically Every 5 minutes

Is there a way to automate a selenium test to run every five minutes? ...