Helo, guys! We're using watir-webdriver with cucumber and page-object gem provided by Cheezy. Our project using ExtJS so there is a lot of ajax. In one of ours scenarios there is a step when user clicks on button(in iframe, let's say iframe1) and system populates the same page in different iframe(let's say frame2), in our PageObject class we have something like this:
in_iframe(:width=>"100%") do |frame| //some elements end
So, the questions is there a way to instantiate new PageObject with the concrete iframe or to change iframe for currently used PageObject?
Will be grateful for any help.