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

The ...NotPresent commands do not work #45

Closed
Haantje opened this issue Jun 13, 2012 · 8 comments
Closed

The ...NotPresent commands do not work #45

Haantje opened this issue Jun 13, 2012 · 8 comments
Labels

Comments

@Haantje
Copy link

Haantje commented Jun 13, 2012

The commands VerifyElementNotPresent, VerifyAlertNotPresent etcetra do not work in FitNesse.
When running commands in Selenium itself (without use of FitNesse) on same test object commands do work.

@amolenaar
Copy link
Member

Hi,

Which version of Xebium are you using? I've been using getElementNotPresent on a regular basis (although I prefer "verifyVisible").

@raboof
Copy link
Contributor

raboof commented Aug 9, 2012

Also, define 'do not work': do they appear to be missing entirely, or do they behave differently from what you'd expect? In the latter case, can you provide a simple example?

@cwortel
Copy link
Contributor

cwortel commented Aug 9, 2012

I use these commands on a daily basis, so I would expect them to work. It would indeed help to have some examples, my first assumption would be that the formatter has done something strange or there is a fitnesse markup issue.

A known defect in the current version of the formatter is a problem with waitFor commands.

Regards,

Cirilo


From: Haantje [reply@reply.github.com]
Sent: Wednesday, June 13, 2012 9:17 AM
To: Cirilo Wortel
Subject: [Xebium] The ...NotPresent commands do not work (#45)

The commands VerifyElementNotPresent, VerifyAlertNotPresent etcetra do not work in FitNesse.
When running commands in Selenium itself (without use of FitNesse) on same test object commands do work.


Reply to this email directly or view it on GitHub:
#45

@amolenaar
Copy link
Member

Hi,

Can you give us an example of a failed test (snippet)?

@Haantje
Copy link
Author

Haantje commented Nov 9, 2012

Hi Arjan,

Below you'll find an example of a notPresent command which does not work
properly:

  • Run following Selenium script:
| script            | selenium driver fixture                                                                                              |
| start browser     | firefox| on url               | http://www.tnt.com                                                                   |
| do                | open   | on                   | !-$WEB_SITE_URL-!                                                                    |
| ensure            | is     | waitForTextPresent   | on | 1. Collectie details                                                            |
| ensure            | is     | textNotPresent       | on | Collectiesrd                                                                    |
| ensure            | do     | click                | on | id=editCollectionAddress                                                        |
| ensure            | do     | type                 | on | id=collectionAddress.companyName                       | with | Bedrijfs Naam   |
| ensure            | do     | type                 | on | id=collectionAddress.addressLine1                      | with | Adres Regel 1   |
| ensure            | do     | type                 | on | id=collectionAddress.addressLine2                      | with | Adres Regel 2   |
| ensure            | do     | type                 | on | id=collectionAddress.addressLine3                      | with | Adres Regel 3   |
| ensure            | do     | type                 | on | id=collectionAddress.town                              | with | Diemen          |
| ensure            | do     | type                 | on | id=collectionAddress.provinceName                      | with | Provincie       |
| ensure            | do     | type                 | on | id=collectionAddress.postCode                          | with | 1111AA          |
| ensure            | do     | select               | on | id=collectionAddress.countryDisplayName                | with | label=Duitsland |
| check             | is     | verifySelectedValue  | on | id=collectionAddress.countryDisplayName                | Duitsland              |
| stop browser      |

Result:

[image: Inline afbeelding 1]

Related website:

[image: Inline afbeelding 2]

2012/11/5 Arjan Molenaar notifications@github.com

Hi,

Can you give us an example of a failed test (snippet)?


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-10088202.

Note: post edited 2012-11-09 by @barend (markdown syntax for the sample table) (fail, try again) (fail again, give up, sorry)

@amolenaar
Copy link
Member

Hi,

Thanks for the example. Does it work if textNotPresent is changed to verifyTextNotPresent?

@amolenaar amolenaar reopened this Nov 9, 2012
@cwortel
Copy link
Contributor

cwortel commented Nov 9, 2012

Also, the ensure command works in combination with doOn (not isOn)
So the entire command would look like:

| do | open | on | !-$WEB_SITE_URL-! |
| ensure | do | waitForTextPresent | on | 1. Collectie details |
| ensure | do | verifyTextNotPresent | on | Collectiesrd |

Regards,

Cirilo

On 9 nov. 2012( w 45), at 12:57, Arjan Molenaar <notifications@github.commailto:notifications@github.com>
wrote:

Hi,

Thanks for the example. Does it work if textNotPresent is changed to verifyTextNotPresent?


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-10223492.

@raboof
Copy link
Contributor

raboof commented Mar 15, 2013

@Haantje Does this solve your problem? Can we close this ticket?

@raboof raboof closed this as completed Apr 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants