selenium

SeleniumException: ERROR: Command execution failure. Permission denied.

SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied. Although my test runs perfectly in Firefox and also in IE when running in Debug mode, in IE in Run mode it fails with the error message above. selen...

Selenium Issues

I have been using Selenium a lot lately (testing an ExtJs app) and while in many ways it is wonderful, there are three things that cause me a lot of grief: Inability to directly click on elements other than buttons. This has led me to write a bunch of Robot code to move the mouse around. That works but is a bit fragile, plus if you tou...

Problem with Pop-up Windows using Selenium

Hello, I'm new to the testing world, so my question might seem a lil' bit too naive and stupid. At risk of looking/sounding stupid, my question is this: i've been trying to test the contents in a pop up window on my company's webapp. i've figured out how to detect the pop up window for now, but i can't get selenium to 'click' on the li...

Validate DOM manipulation when using Selenium

I'm using Selenium to test my application. A nice test would be that after every DOM manipulation I would validate the DOM. Is there a nice way to do this? Obvious ways are: use some builtin Selenium function. Is there one? get the HTML of the DOM after the manipulation and use a local validator. However, I can't see how to get the HT...

Cucumber/Selenium newbie trying to use RoR session-data in step-definitions ... and failing ...

Hi! I'm spending my first few days with cucumber/selenium trying to figure out whether RBB is the thing I want to use in my latest RoR project. My setting: Rails 2.3.5, selenium-client 1.2.17, cucumber 0.4.4 etc, quite current in my view. Following the instructions on http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium ...

Running Selenium Tests through JUnit in Hudson

Hi, apologies for the somewhat confusing title :-) Basically, I've configured my Selenium tests to run through JUnit when I build the project through maven. If I start my Selenium Server in a command prompt and then run the maven build goal in another cmd prompt then the tests runs as expected. I figured that this process would be easy...

How to find if there are javascipt errors in the page using selenium rc

I am using selenium rc and I would like to know if there are any javascript errors occured in the page. Is there any Selenium API to check if there are any javascript errors? Thanks very much. ...

jQuery.forms.js works using click() but not submit() (using selenium)

My form has an ajax handler provided by jquery.forms.js. form.ajaxForm({ dataType: 'json', clearForm: true, success: function (data) { form.replaceWith(data); } }); I'm testing this using selenium (the python RC interface), and it works when I click() the button, but not when I submit the form: locbase = "dom=docum...

XPath to CSS Selector

I have the following xpath statement in a selenium test: //tbody/tr[td/span[text()='IPODate']]/td[4]/input It gets what I want but my tests are painfully slow in IE6. Anyone know how I would do the same selector as CSS selectors? I think I understand how to do each of these with exception to the text()="IPODate" part. As requested he...

crawler get external website search result

What is the best practice and library I can use to key in search textbox on external website and collect the search result? How do tackle website with different search box and checkbox and collect the result? Can Selenium be used to automate this? Should I use Heritrix or nutch? Which one is better? I heard nutch comes with plugins. Whi...

Is there a way to check layout with selenium RC

I want to check the layout of the page. Something pretty simple - that a certain div is displayed above/below/left/right of another div Is it possible to do this kind of stuff? ...

CSS selector works in Firefox but not in IE

Does anyone know why this CSS selector works in Firefox but not in IE7 or IE8? css=div[style~='visible;'] div[class~='x-combo-list-item']:contains('Test Job') I'm using this in a Selenium test to find an element on the page. Edit: The :contains selector is not the problem. I'm using it elsewhere in my tests and it works in IE6, 7, an...

Indexing over the results returned by selenium

Hi I try to index over results returned by an xpath. For example: xpath = '//a[@id="someID"]' can return a few results. I want to get a list of them. I thought that doing: numOfResults = sel.get_xpath_count(xpath) l = [] for i in range(1,numOfResults+1): l.append(sel.get_text('(%s)[%d]'%(xpath, i))) would work because doing som...

How do I get the Id of a button of a jquery UI dialog?

as the title says.... this is what I have tried but not working $('#uxReferralAssessmentDetailsDialog').dialog({ autoOpen: false, modal: true, width: 400, title: "Referral Assessment", buttons: { "Save":{ id: 'uxbtnSaveAssessment', click:othis.OnAssessmentSave}, "Cancel": fun...

Selenium typekeys issue

Hi, I am using typekeys to type something and to enable a button in my application. But whenever the typekeys command is executed in fiefox help of the firefox gets opened. Please can anybody tell me how to solve this problem. ...

Wait for an iframe to open and load with Selenium

Hello. I have an app in which the user clicks a button, triggering an iFrame to open. I'm having real trouble waiting for this frame to open an load before continuing. I can't use: wait_for_page_to_load because the it's not the page that loads, it's the iframe. I can't use: select_frame because the frame hasn't loaded yet so I'...

Selenium get_html_source

Hi, I am trying to scrape a verizon wireless phone page using selenium at the following address: http://www.verizonwireless.com/b2c/store/controller?item=phoneFirst&action=viewPhoneOverviewByDevice&deviceType=Phones&sortOption=priceSort&lid=//global//phones+and+accessories//cell+phones I get to the page and use get_html...

how to click on a button when specific image is asscoiated with it

hi, I am using selenium for testing my application. In my application there are 5 buttons, each have a different image associated with it. I want to click on button which have a specific image associated. Currently i am using a while loop to get the node of image and then replacing this node into xpath of button to select it. is there...

Xpath builder in Python

I'm building relatively complicated xpath expressions in Python, in order to pass them to selenium. However, its pretty easy to make a mistake, so I'm looking for a library that allows me to build the expressions without messing about with strings. For example, instead of writing locator='//ul[@class="comment-contents"][contains(., "Wes...

Selenium-RC: Is there a way to sniff the incoming/outgoing HTTP requests

Like HTTP Headers in firefox, I would like to save all the HTTP requests and responses (more importantly requests) that are sent/received during the run of selenium. Is there a built-in tool or do I have to combine the script with wireshark/fiddler? if there isn't what's the most convenient way of doing this? ...