xebia/Xebium — Issue #31: verify command uses glob by default
Author: cwortel
Created: 2012-01-05 16:15:06+00:00
State: open
Labels: bug

Currently verify commands use a glob pattern which is not in all cases wanted.

A verifyTextPresent should use a glob pattern by default, since it does not verify a specific location
A verifyText does use a locater and should be specific in the assertion and not use a glob by default.

Here's a simple test to demonstrate the behaviour:

| script | selenium driver fixture |
| start browser | firefox | on url | http://localhost:8000 |
| ensure | do | open | on | / |
| ensure | do | verifyText | on | css=span.page_title | with | !-FrontPage-! |
| ensure | do | verifyNotText | on | css=span.page_title | with | Page |
| ensure | do | verifyText | on | css=span.page_title | with | glob:*Page |
| ensure | do | verifyTextPresent | on | Page |
| stop browser |

I've seen similar behaviour with the verifyCookie command, probably other commands need to be adjusted as well, the current approach (using glob by default) is too generic.