Closed justjoehere closed 3 years ago
I have a fix, but cannot push a branch. How do we get access to push a branch and issue a pull request?
You need to fork the project, push the change to a new branch on your fork, then make a PR from that.
Issued PR#499. I attempted to create some tests, but I'm not sure how to mock frames to do so. The code change itself is straight forward. If I can get some guidance on how to create iframe tests, I'm happy to add some for this. I did not see any iframe tests in the repo.
PR merged
When using the in_frame(visible: true) &block style approach, Page Object is incorrectly converting true into 'true' This is resulting Watir blowing up saying it expects TrueClass or FalseClass.
The code causing the issue is located in PageObject::Platforms::Watir::PageObject#nested_frames:1077 module PageObject module Platforms module Watir class PageObject def nested_frames(frame_identifiers)
The solution that seems to work is add checks for TrueClass and FalseClass, similar to the line that checks for Integer.