Open dorikick opened 14 years ago
We should probably look into supporting the same Window API as in watir-webdriver in Celerity's watir2-compliance branch. I'll make sure the specs are moved to watirspec.
OK, this is a little more work than I first thought. Since HtmlUnit tries to automatically focus the frontmost window, we'll need to track our own current window in Celerity instead of just tracking pages.
That's a fairly big change to the internals.
Definitely would like this, faced with this and all I can do is use capybara + selenium, I'd much rather do it in Celerity but presently dont have the choice. Not being able to do it is a bit of a deal breaker. Its great for when you can control page interactions, but when dealing with third party UI's where I cant I'm pretty much screwed without it. :(
(original title: link.click_and_attach: no way to filter through windows)
i brought this up a while back, but it seems like Celerity has no support for choosing between multiple popup or main window.
i link.click_and_attach, if the site has Popup ads, it will load the popup ad, instead of the page. browser.url will show the main page's URL. however, browser.html outputs a popup ad html.
So any way to deal with this ? i would very much prefer to use click_and_attach, and be able to filter windows (like if URL contains, ad.doubleclick, ignore it)