50976/how-to-stop-test-execution-in-selenium-if-an-error-occured
Hey Fatima, if you are using any try-catch block in your code and wants to stop the test execution if an error is caught, then you can use this in your catch block:
try { //code } catch(Exception e){ e.printStackTrace(); System.exit(1) }
Thread.sleep(5000); READ MORE
Hi Kanak, to test facebook login using ...READ MORE
WebElement element = driver.findElement(By.id("id")); JavascriptExe ...READ MORE
When it comes to Selenium, XPath will ...READ MORE
The better way to handle this element ...READ MORE
enable trusted connection in internet explorer by ...READ MORE
To Allow or Block the notification, access using Selenium and you have to ...READ MORE
xpath are two types. 1) Absolute XPath: /html/b ...READ MORE
Hi Mohan, you can use following code ...READ MORE
You first need to download chrome driver ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.