Skip to content

Commit

Permalink
Add 'Remove line from textarea' keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTango committed Jul 6, 2017
1 parent c619e34 commit d58f1fc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/plone-keywords/generic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
================
Generic Keywords
================

Remove line from textarea
=========================
::

Remove line from textarea
[arguments] ${fieldName} ${value}

Example::

Remove '${tag}' from the valid tags list
Remove line from textarea form.widgets.valid_tags ${tag}

1 change: 1 addition & 0 deletions docs/source/plone-keywords/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ all the keywords that are necessary to write acceptance test in Plone.
:maxdepth: 1

content.rst
generic.rst
browser.rst
login.rst
history.rst
Expand Down
6 changes: 6 additions & 0 deletions src/plone/app/robotframework/keywords.robot
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,9 @@ Checkbox Select
[arguments] ${title}
${for}= Get Element Attribute xpath=//table[contains(@class, 'group')]//label[contains(., "${title}")]@for
Select Checkbox id=${for}

Remove line from textarea
[arguments] ${fieldName} ${value}
${lines}= Get value name=${fieldName}
${lines}= Remove String ${lines} ${value}\n
Input Text name=${fieldName} ${lines}

0 comments on commit d58f1fc

Please sign in to comment.