celerity icon indicating copy to clipboard operation
celerity copied to clipboard

Window switching API

Open dorikick opened this issue 15 years ago • 3 comments

(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)

dorikick avatar Apr 30 '10 19:04 dorikick

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.

jarib avatar Sep 02 '10 21:09 jarib

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.

jarib avatar Sep 04 '10 21:09 jarib

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. :(

deancornish avatar Dec 21 '10 03:12 deancornish