When trying to access gmailcom without VPN, I encounter an error page. This means I can only access Gmail with VPN enabled.
Although I have 30 scenarios for testing Gmail, I do not want to run them if there is an error on the URL.
Error code 16
This request was blocked by the security rules
2019-05-18 18:59:37 UTC
Your IP117.98.192.121|Proxy IP45.60.125.185(ID 10747)
Incident ID: 747000100070795222-59022273854242981
String url =getUrl(prop.getProperty("url"));
System.out.println(url);
WelcomePage.ClickonLoginbutton();
loginPage = new LoginPage(driver);
loginPage.login(prop.getProperty("AdminUser"), prop.getProperty("Adminpass"));
//util.waitForElementToAppear(policypage.SelectpolicyText);
Thread.sleep(40000);
adminpage= new AdminUserpage(driver);
adminpage.Controlpanelclick();
util.waitForElement(driver, 8000, adminpage.TextUserandOrg);
Expected: Test cases should not execute if the URL is not working and shows an error in the page source.
Actual: Despite the error, all test cases continue to run and fail.