Moved over from github issue #1664:
Condition test BrowserContainsText is not stable for pages where JS is loading data after page is loaded. G.e. redirecting OSIO login page using different account provider (jboss developer) results in refreshing already loaded page (Red Hat login page) instead of refreshing page for which there was a redirection attempt (jboss developer). In case of trying to set URL in code validity of page is lost (most likely because CSFR token is originally sent with redirecting using JS .click() ).
Solution imo can be by override method arguments to add
private boolean refresh; with
where page refresh will happen only when by default refresh=true .
PR in progress..