views:

49

answers:

2

I have been using selenium IDE to do some web app testing. I have been encountering errors on trying to playback the user actions, but have not been able to fix them because I have no idea what makes up selenese html targets and commands. It does not look like normal html to me but I cannot figure it out. If someone would be so kind as to help me I would be very happy. Thanks in advance

+1  A: 

The Selenium Commands page would be a good place to start to learn about what all the various commands do and how to use them.

Kevin Crowell
+1  A: 

It's just a table definition with three tds per tr, specifying the command and any other parameters needed.

Example from the docs:

<table>
    <tr><td>open</td><td></td><td>/download/</td></tr>
    <tr><td>assertTitle</td><td></td><td>Downloads</td></tr>
    <tr><td>verifyText</td><td>//h2</td><td>Downloads</td></tr>
</table>

The IDE also has a reference built into it. I suggest you peruse the documentation available on their site until you are comfortable with the way the IDE works -- it can be a little unintuitive if you haven't done so.

jeremiahd
Do you have any idea how it decides what to call different elements?
chromedude
I'm not sure what you mean. If you mean how it selects elements on the page, there's quite a few options. You can use XPATH or CSS selectors, etc. They're layed out in the docs. If you mean how it knows which tds to use for parameters, it's whatever it says in the docs (and the API). If you mean something else by "what to call different elements", I'm afraid I'll need an example of what you're talking about.
jeremiahd