Closed smartkiwi closed 10 years ago
I hate to change the behavior of an existing method. Would you mind updating your patch to make it a new method named wait_for_expected_title ?
Good point Please see my this pull request https://github.com/cheezy/page-object/pull/194
Merged lastest pull request
I'm building tests using page-object for the web site that uses AngularJS and there are cases when finial title is shown with some delay after page load.
Here is link to the code in my fork: https://github.com/smartkiwi/page-object/commit/a269d2a566155e3ff742afac9936a0ee1a51cba3#diff-2f097973797173d9cea14f27dd9c78e4
It is no a proper pull request for now - I'm not yet proficient in ruby - so I'm still learning ruby till I'll be able to write rspec tests for my change.