Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Page Load behaviour differences Protractor/Manual #4904

@SmaugRon

Description

@SmaugRon

We have a small hotel booking app for which I have written a simple automated smoke-test based on an E2E flow.

Select hotel > Choose Start Date > Choose End Date > Select no of Adults > Select No of Children > Enter Promo code > Click Search. From the offered hotels, click Submit to return room availability and costs.

Works fine when run by a user and also fine under an automated test UNTIL the last Submit action - the results page frame loads, then there is a 'wait' wheel followed by an error message stating the hotel's availability is not available!

  1. I've checked that the url being posted contains the same data when run manually and automatically - i.e the enquiry data mentioned above...it's correct.
  2. I've asked my dev colleagues if there's something different between the two ways of sending the data post-button press - no.
  3. I've tried:
  • Browser.wait - of many different times.

  • Expected Condition (wait for the page to load)

  • Var V = element(by.xpath...........
    V.submit
    ..that generates no element found on the form (I don't think the page in question IS a form so I'm not surprised!

Below is the last straw clutched!
it('should check when new page is loaded', function () { button.click().then(function (){ browser.getCurrentUrl(); browser.getTitle().then(function (title) { expect(title).toEqual('https://obmng.dbm.guestline.net/availability?hotel=OBMNG4&arrival='); return expect(newElement.isDisplayed()).toBeTruthy();

Has anyone got anything I could try or perhaps can explain this behaviour difference?

Thanks
David

Bug report

  • Node Version: 5.6.0
  • Protractor Version: 5.4.0
  • Angular Version: ``2.0.0-beta.21
  • Browser(s): ``Chrome
  • Operating System and Version `` Win 7 and OSX
  • Your protractor configuration file
  • A relevant example test
  • Output from running the test
  • Steps to reproduce the bug
  • The URL you are running your tests against (if relevant)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions