selenium-ide

Selenium - Store hidden variable

We are using Junit + Selenium to webtest our webpage. But we have run into a problem. I need to parse the value from a hidden field with Selenium. HTML of hidden field <input type="hidden" name="secretId" value="123456"/> I use the following XPath //input[@name='secretId']/@value I need to scrape that hidden variable and store it using...

How do I retrieve the text in a table column using Selenium RC?

I have a table that looks like the following: <table class="theClass"> <tr> <td class="anotherClass"><strong>Label1:</strong></td> <td colspan="3">Value1a<br/>Value1b<br/>Value1c</td> </tr> <tr> <td class="anotherClass"><strong>Label2:</strong></td> <td colspan="3">Value2a<br/>Value2b<br/>Value2c</td> </tr> <tr> <td cla...

How to store '\n' in Selenium IDE for further its using e.g. in forming a text report?

I'm forming a text report about group of links and their paths and I need Selenium to paste each new record or several records from the new line. I was trying to use this code but it works only 1 time, after I close Selenium and then open it again '\n' disappears: <td>storeText</td> <td>\n</td> <td>newline</td> Report forming code (wo...

your browser does not support xml http request - selenium ide error

i am getting this error, when executing the test case in selenium ide ...

Selenium IDE - how to customize right click context menu

On right click, the context menu appears and provides few selenium commands. It does not provides all selenium commands. The list of commands is dynamic and gets updated with mostly used selenium commands. I want to make the command list static for context menu. Any idea how can I do that? Any help will be appreciatetd. ...

How to convert Selenese (html) to Python programmatically?

How would I convert test cases made by Selenium IDE to Python without exporting every test case by hand? Is there any command line converter for that job? In the end I want to use Selenium RC and Pythons build in unittest to test my websites. Thanks a lot. Update: I started to write a converter but its too much work to implement all ...

Selenium IDE - Passing a URL string variable into a conditional 'gotoIf' statement throws a Syntax error???

I am trying to store the current url (http://example.com)in a variable and compare it with another string as a condition in the gotoIf command (part of the gotoIf extension.js): storeLocation || url gotoIf || ${url}=="http://example.com" || label When I run this seleniun ide throws this error: [error] Unexpected Exception:...

Selenium: Can I combine several commands into one command to be referenced by other tests without coding

Hi, I'm currently evaluating Selenium and it seems I'll have to perform certain steps in my tests over and over again. Is there any way to wrap several steps from a selenium test into one single step which can be referenced by other tests? It seems that this can be done with with custom coding as mentioned at in the UI-Element docume...

Selenium Testing

Hi I want to get a bunch of dom-objects with xpath and loop through those to check if they contains a specified text, is this possible in the Selenium IDE or rc? Perl is my prefered language XPath would be something like xpath=//tbody[@class='table-data']/tr/td/div[@class='table-item'] This would return all row items in the table, but...

Transform code user-extensions.js in java code in Selenium IDE

Hello! I created a user-extension.js with a internal command... (step to take an evidence). When I try to export the Selenese to Java (JUnit) I'd like see the real Java command that I need use. Someone have an direction to me? Best Regards! ...

Selenium IDE and telling it to record actions

I am trying to make a little application to allow to record actions within a Flash and Silverlight application. In such manner that you can compile your interactive application in test-mode and then be able to click on elements which then passed the action to Selenium IDE which then adds this command to the testcase. I am curious if thi...

problem in selenium with sending requests to the server while testing login form

hi I'm new to Selenium and I'm having a problem: when I have the Selenium IDE opened and I try to click on the login button in my app the app seems to be stuck (the same issue is when I try to play the recorded click in the Selenium IDE). Entering values to textboxes works fine but the click doens't. The request is not being send to the ...

In Selenium IDE, can I store an element to use in subsequent asserts?

I've just started using Selenium-IDE (not looked at selenium-RC yet: if somebody tells me that that is the answer to my question I'll look at it) One of the operations I'm testing generates some output in a table in the next HTML page, but the order of the rows is not predictable. I can obviously use 'assertTextPresent', but I want to...

selenium IDE clickAndWait xpath

In selenium IDE, I need to click on the nth link that has text 'XXX'. How can this be done? <tr> <td>clickAndWait</td> <td>//a[text()='XXX'][${link}]</td> <td></td> </tr> The above code says [error] Element //a[text()='XXX'][9] not found even though it's valid, ...

What is a good way to interact with iframe elements using Selenium IDE?

I am wanting to test a web application which uses FCKeditor in Selenium IDE. Unfortunately, FCKeditor uses iframes, which are difficult to test in Selenium IDE. Basically, all I want to do is set the value of the FCKeditor editing area and read it later to see if the value was submitted correctly. I suppose this question is two-fold: ...

Is the order of attributes in a certain tag releveant?

Is the order of attributes in a certain tag releveant. Specific case: This is from a selenium testfile. Given a testcasse <?xml version="1.0" encoding="UTF-8" standalone="no"?><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"&gt; <meta content="text/htm...

how to use variable from runscript command

I get some text from a web page 5,19 € 3,50 € I want to split this text after "€". for that I'm using this command runScript | javascript{var prices = storedVars['price'].split("€"); document.write(prices[0]); document.write(prices[1])}; after done that try this command getEval | alert(storedVars['prices[0]']) the answer is that p...

Selenium IDE - How to record xpath in the Firefox plugin

Hi All! I'm having trouble with my xpaths in the Firefox plugin. I have three textboxes, the first one has ID=login and the rest has dynamically generated IDs. The first one works fine to write in the plugin, //input[@id='login'] but as soon as I try something more advanced, it cannot find anything. After reading plenty of forum posts, ...

from selenium test scripts back to selenese

I've got a bunch of test scripts written using Test::WWW::Selenium (but the fact that I used perl is inconsequential, any language selenium supports probably has the problem I describe). When the cogs in my application come loose I'd like to replay the test using the Selenium IDE, letting me have full control over the action But I'm no...

Selenium with BrowserMob.com

Hi All, I am working with Selenium in order to create load balancing tests on a web server. The website has a username/password and in order to work with this I have a csv file filled with username password combinations. The issue is I am using the random function in Javascript to select a row from the csv file and populate the login f...