Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New assert methods #5

Closed
angryziber opened this issue Apr 26, 2012 · 2 comments
Closed

New assert methods #5

angryziber opened this issue Apr 26, 2012 · 2 comments

Comments

@angryziber
Copy link
Contributor

assertURL()

@angryziber
Copy link
Contributor Author

Example implementation:

protected void assertURL(String suffix) {
assertEquals(baseUrl + suffix, WebDriverRunner.getWebDriver().getCurrentUrl().replaceFirst("?.*$", ""));
}

@asolntsev
Copy link
Member

Fixed in Selenide 1.5

asolntsev added a commit that referenced this issue Sep 3, 2022
otherwise we sometimes get a failing test:

```
CollectionWithChangingTextsTest > stream() FAILED
    java.lang.AssertionError:
    Expecting actual:
      ["Item #1",
        "Updated Item #2",
        "Updated Item #3",
        "Additional text #4",
        "Additional text #5"]
    to contain exactly (and in same order):
      ["Item #1", "Item #2", "Item #3"]
    but some elements were not found:
      ["Item #2", "Item #3"]
    and others were not expected:
      ["Updated Item #2",
        "Updated Item #3",
        "Additional text #4",
        "Additional text #5"]
        at integration.CollectionWithChangingTextsTest.stream(CollectionWithChangingTextsTest.java:62)
```
asolntsev added a commit that referenced this issue Sep 12, 2024
still have no idea why it failed sometimes, but at least I tried... :)

Expecting actual:
  ["Item #1",
    "Updated Item #2",
    "Updated Item #3",
    "Additional text #4",
    "Additional text #5"]
to contain exactly (and in same order):
  ["Updated Item #1",
    "Updated Item #2",
    "Updated Item #3",
    "Additional text #4",
    "Additional text #5"]

	at CollectionWithChangingTextsTest.stream_afterNewElementsAppeared(CollectionWithChangingTextsTest.java:74)
asolntsev added a commit that referenced this issue Sep 12, 2024
still have no idea why it failed sometimes, but at least I tried... :)

Expecting actual:
  ["Item #1",
    "Updated Item #2",
    "Updated Item #3",
    "Additional text #4",
    "Additional text #5"]
to contain exactly (and in same order):
  ["Updated Item #1",
    "Updated Item #2",
    "Updated Item #3",
    "Additional text #4",
    "Additional text #5"]

	at CollectionWithChangingTextsTest.stream_afterNewElementsAppeared(CollectionWithChangingTextsTest.java:74)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants