public void WaitForPartialUrl(string partialUrl) { try { var wait = new WebDriverWait(WrappedDriver, TimeSpan.FromSeconds(10)); wait.Until((d) => WrappedDriver.Url.Contains(partialUrl)); } catch (Exception ex) { UrlNotNavigatedEvent?.Invoke(this, new UrlNotNavigatedEventArgs(ex)); throw; } }
public void WaitForPartialUrl(string partialUrl) { try { var wait = new WebDriverWait(WrappedDriver, TimeSpan.FromSeconds(ConfigurationService.GetSection <WebSettings>().TimeoutSettings.WaitForPartialUrl)); wait.Until((d) => WrappedDriver.Url.ToLower().Contains(partialUrl.ToLower())); } catch (Exception ex) { UrlNotNavigatedEvent?.Invoke(this, new UrlNotNavigatedEventArgs(ex)); throw; } }