Robot Framework
===============
Text Field
----------
HTML
.. code-block:: html
Robot Selector::
Input Text name=form.widgets.title My Title
.. seealso:: http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html#Input%20Text
Text Area
---------
HTML
.. code-block:: html
Robot Selector::
Input Text name=form.widgets.title My Text
.. seealso:: http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html#Input%20Text
Rich Text (TinyMCE)
-------------------
HTML
.. code-block:: html
...
...
Robot Selector::
Select frame id=form.widgets.text_ifr
Input text id=content My Rich Text
Unselect Frame
Robot Keyword::
Input RichText
[Arguments] ${input}
Select frame id=form.widgets.text_ifr
Input text id=content ${input}
Unselect Frame
.. more:
http://keeshink.blogspot.de/2013/03/robot-framework-testing-hints.html
Checkbox
--------
HTML
.. code-block:: html
Robot Selector::
Select Checkbox xpath=//input[@name='form.widgets.city:list' and @value='Cologne']
.. more:
http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html#Select%20Checkbox
Radiobox
--------
todo
Select
------
todo
Tags
----
RF supports tags. Add a line [Tags] tag1 tag2:
*** Test cases ***
Scenario: Clicking the submit button hides it
Given i am logged in
and i am on an article
When i simulate clicking the comment submit button
Then the submit button has class disabled
Scenario: Submitting a comment displays it in the page
[Tags] working_on_it
Given i am logged in
and i am on an article
When i type something in the comment box
and i click the comment submit button
Then the page shows the comment
You can now run only the latter test: ./bin/test -m der.freitag -t working_on_it (This is Plone-specific. See Asko's comment below.)
.. note::
http://keeshink.blogspot.de/2013/03/robot-framework-testing-hints.html