Command Reference

Home/Start & Support/Command Reference

In general: The target-field

The target-field works for most commands very similar. To understand the different options on targeting website elements with the target-field, please read the corresponding section in our user-guide.

Commands:

  1. clickAt
  2. clickAtAndWait
  3. mouseOver
  4. mouseOverAndWait
  5. open
  6. pause
  7. rememberText
  8. scrollTo
  9. sendKeys
  10. verifyNotText
  11. verifyNumbers
  12. verifyText
  13. windowMaximize
  14. windowSetSize
Command Description Examples Fails the test, if…
clickAt Simulates a click on the target element. targetcss=.logobox  value     
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
  • … the upper left corner of target-element is not visible. (Firefox)
clickAtAndWait Works in the same way as clickAt, but forces a 3 second wait before the next command will be executed. targetcss=.logobox  value     
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
  • … the upper left corner of target-element is not visible. (Firefox)
mouseOver Simulates a user moving the mouse pointer over the target element. targetlink=Fashion  value     
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
  • … the upper left corner of target-element is not visible. (Firefox)
mouseOverAndWait Works in the same way as link=Fashion, but forces a 3 second wait before the next command will be executed. targetcss=.logobox  value     
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
  • … the upper left corner of target-element is not visible. (Firefox)
open Opens the in the target-field given path of the selected domain. To open a path of a different domain, you would need to go to your Domain Settings and save another domain. target/  value     
target/fashion  value     
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-path cannot be opened.
pause Pauses the test execution for the amount of milliseconds that are defined in the value-field. target  value3000

 
rememberText Saves the value of the element defined in the target-field. You can use the saved value in other commands within the same test case. To do that use $remembered. targetid=headline  value     
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
scrollTo Scrolls on the current site to the coordinates that are defined in the value-field. The coordinates should be separated by a semicolon. The first number represents the x-coordinate (horizontal) and the second number the y-coordinate (vertical). target       value0;0
target       value0;800
  • … the input of the target– or the value-field has the wrong syntax.
  • … the given coordinates are not within the current page.
sendKeys Simulates a user typing the text of the value-field in the element defined in the target-field. That element should be able to hold user input, e.g. an form input field. targetid=customer_email  valuesample.user@isp.com
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
verifyNotText Verifies that the element defined in the target-field does NOT contain the text of the value-field. If you want to compare the text saved with the command rememberText use $remembered. targetcss=h1  valueshoe
targetcss=h1  value$remembered
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
verifyNumbers Compares the number found in the target-element with another number. You can use it with a typed in number or the saved value stored in $remembered. The operator to use for the comparison is separated by a semicolon in the value-field from the value that should be compared. targetid=price_box  value>=;$remembered
targetid=price_box  value<=;366,00
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
verifyText Verifies that the element defined in the target-field does contain the text of the value-field. If you want to compare the text saved with the command rememberText use $remembered. targetcss=h1  valueshoe
targetcss=h1  value$remembered
  • … the input of the target– or the value-field has the wrong syntax.
  • … the target-element does not exist.
  • … the target-element is not visible.
windowMaximize Maximizes the browser window on the device where the current test run is executed on. target       value       
windowSetSize Sets the size of the browser window to the dimensions defined in the value-field. target       value300;500
  • … the input of the target– or the value-field has the wrong syntax.