mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-09 20:41:10 +00:00
remove debug URL parameter, adopt cache for switching parameter value
#5153
This commit is contained in:
1 parent
39fe761eb8
commit
52bf66fabb
3 files changed
+22
-24
No files matched your search
+11
-7
@@ -40,19 +40,23 @@ public abstract class HostPage extends PageObject {
|
||||
throw new IllegalArgumentException(exc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static final void goToPage(WebDriver driver, URI uri) throws URISyntaxException {
|
||||
String scheme = uri.getScheme(), userInfo = uri.getUserInfo(), host = uri.getHost();
|
||||
String path = uri.getPath(), query = getGWTCodeServerAndLocale() + "&" + uri.getQuery(), fragment = uri.getFragment();
|
||||
String scheme = uri.getScheme(), userInfo = uri.getUserInfo(), host = uri.getHost();
|
||||
String path = uri.getPath(),
|
||||
query = getGWTCodeServerAndLocale() + (uri.getQuery() != null ? "&" + uri.getQuery() : ""),
|
||||
fragment = uri.getFragment();
|
||||
driver.get(new URI(scheme, userInfo, host, uri.getPort(), path, query, fragment).toString());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Creates a new page object with the given web driver. In GWT an entry point is connected to a HTML page in
|
||||
* which the code for the application is executed, whereby the page is represented by the web driver.</p>
|
||||
* <p>
|
||||
* Creates a new page object with the given web driver. In GWT an entry point is connected to a HTML page in which
|
||||
* the code for the application is executed, whereby the page is represented by the web driver.
|
||||
* </p>
|
||||
*
|
||||
* @param driver
|
||||
* The web driver to use.
|
||||
* The web driver to use.
|
||||
*/
|
||||
public HostPage(WebDriver driver) {
|
||||
super(driver);
|
||||
|
||||
+1
-5
@@ -58,11 +58,7 @@ public class HomePage extends HostPageWithAuthentication {
|
||||
* @return the {@link PageObject} for the home page
|
||||
*/
|
||||
public static HomePage goToPage(WebDriver driver, String root) {
|
||||
return goToPage(driver, root, false);
|
||||
}
|
||||
|
||||
public static HomePage goToPage(WebDriver driver, String root, boolean debranded) {
|
||||
return goToHomeUrl(driver, root + "gwt/Home.html" + (debranded ? "?whitelabel" : ""));
|
||||
return goToHomeUrl(driver, root + "gwt/Home.html");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user