* @see #waitOnUrlChange(WebDriver,WebElement)
*/
public static void waitOnUrlChange(final WebDriver webDriver, final String fromUrl) {
Assert.notNull(webDriver, "WebDriver must not be null");
Assert.notNull(fromUrl, "FromUrl must not be null");
new Wait("Expected change of URL from " + fromUrl) {
@Override
public boolean until() {
return !webDriver.getCurrentUrl().equals(fromUrl);
}
};