thank you Marcin! I added your code like this as I could convince devs to only use one parameter: *?qualtrics=notest*
[image: geb.jpg] it does not work. does this really add *?qualtrics=notest* to the url when the page is loaded? I added the section above to all pages in the framework, but I do not see in the logs if pages are called each time with the parameter *?qualtrics=notest*. could you please help me? On Tuesday, September 28, 2021 at 10:52:49 PM UTC+2 [email protected] wrote: > You would need to add a base page class which all of your pages would > extend from and which would have the following method: > > @Override > void to(Map params, UrlFragment fragment, Object... args) { > super.to([qualtrics: "notest", stage: "prod"] + params, fragment, > args) > } > > On Fri, Sep 24, 2021 at 7:43 AM [email protected] <[email protected]> > wrote: > >> yes, I need popups. >> >> in the meantime I got parameters from dev, which I need to pass to every >> page like "?qualtrics=notest&stage=prod", so every page needs to be called >> like that: http://test.abc.com/?qualtrics=notest&stage=stage >> >> how do I build this into the framework? >> >> is there central place where I can add arguments/parameters like that to >> all current urls? >> >> thank you! >> >> >> >> On Thursday, September 23, 2021 at 1:44:03 PM UTC+2 jc wrote: >> >>> Do you need popups enabled at all? If not, just pass in the capability >>> to the browser to prevent popups. In chrome it's >>> options.addArguments("--disable-popup-blocking") >>> >>> On Thu, Sep 23, 2021, 5:38 AM [email protected] <[email protected]> >>> wrote: >>> >>>> hi, >>>> is there a way to handle random popups in geb? >>>> >>>> I found this >>>> https://www.vinsguru.com/selenium-webdriver-how-to-handle-annoying-random-popup-alerts/ >>>> >>>> but have no idea how to build this into the pages? >>>> >>>> I need to click away a random popup like this: >>>> [image: popup.jpg] >>>> >>>> Thank you! >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Geb User Mailing List" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/geb-user/a6d63fb1-b01b-474d-b5db-f5f69e38abd5n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/geb-user/a6d63fb1-b01b-474d-b5db-f5f69e38abd5n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Geb User Mailing List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/geb-user/9570d1af-cfde-4db3-88ce-0183ccd60646n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/geb-user/9570d1af-cfde-4db3-88ce-0183ccd60646n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/44e7acca-fe62-4bed-9c41-c4923ac708ban%40googlegroups.com.
