Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is selenese html?

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

like image 968
chromedude Avatar asked Aug 01 '10 03:08

chromedude


1 Answers

Selenese is a high level, cross-platform and language-independent convention for representing Selenium commands.

The term ''Selenese HTML'' is less to do with how you'd target elements in the HTML user interface of the application under test and is more a description of how the commands are formatted.

So, I use the term ''Selenese HTML'' to distinguish it from Selenese in other languages/formats such as Selenese PHP, Selenese Java etc.

There are up to 3 components to a Selenese command:

  • commandName
  • 1st argument (required by some commands)
  • 2nd argument (required by some commands)

Given this knowledge, we can write the command in HTML format as a row of an HTML table, where each cell of the row represents a component of the command

----------------------------------------------
| commandName | 1st argument | 2nd argument |
----------------------------------------------

Now that the command is written in HTML form, we could potentially share it on the World Wide Web so that both humans and machines can read and understand it.

like image 170
j walker ib Avatar answered Oct 14 '22 15:10

j walker ib