Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Add locators to documentation/testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof committed Jun 26, 2014
1 parent f66db2f commit aeface5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
@@ -0,0 +1,19 @@
!-
Elements to be matched: (check source for HTML):
<ul>
<li><div id="identifier">By identifier</div></li>
<li><a href="http://google.com">Link text</a></li>
<li><div>By xpath</div></li>
<li><div class="somecssclass">By CSS</div></li>
</ul>
-!

!| script | selenium driver fixture |
| start browser | ${BROWSER} | on url | http://localhost:${FITNESSE_PORT}/ |
| ensure | do | open | on | ${PAGE_PATH}.${PAGE_NAME} |
| check | is | getText | on | identifier | By identifier |
| check | is | getText | on | id=identifier | By identifier |
| check | is | getText | on | link=Link text | Link text |
| check | is | getText | on | //ul/li[3]/div | By xpath |
| check | is | getText | on | css=.somecssclass | By CSS |
| stop browser |
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<properties>
<Edit/>
<Files/>
<Help/>
<Properties/>
<RecentChanges/>
<Refactor/>
<Search/>
<Test/>
<Versions/>
<WhereUsed/>
</properties>

0 comments on commit aeface5

Please sign in to comment.