hsac-fitnesse-fixtures icon indicating copy to clipboard operation
hsac-fitnesse-fixtures copied to clipboard

need javascript callback exposed

Open violinner opened this issue 5 years ago • 1 comments

Tests of web-applications that create data grids & histograms sometimes require asynchronous JavaScript calls to the presentation vendor's API, for instance, with Tableau.

waitForJavascriptCallback() is protected and cannot be called from an arbitrary BrowserTest test command.

Please expose waitForJavascriptCallback() as public.

violinner avatar Feb 05 '20 14:02 violinner

Can you elaborate a bit on what your test will do? I don't assume normal end users will be typing callback function's in the browser's console window. ;-)

To achieve the goal of readable and maintainable tests I always found that creating a Java subclass of BrowserTest that offers a method that wraps some complex JavaScript implementation of a test-step a good trade-off.

If you want to do your JavaScript directly from the wiki, doesn't (the publicly available) execute script method or (executeJavascriptUntilIs) suffice?

fhoeben avatar Feb 05 '20 20:02 fhoeben