0

Below is the code and it is simple selenium code. Using Maven build tool. Chrome version is 134.0.6998.178

public class FirstTestCase {
    public static void main(String[] args) {
            WebDriverManager.chromedriver().setup();
            WebDriver driver = new ChromeDriver();
            driver.get("https://opencart.com/");
            String actualTitle = driver.getTitle();
            System.out.println(actualTitle);
            if (actualTitle.equals("OpenCart - Open Source Shopping Cart Solution")) {
                System.out.println("Test Case Passed");
            } else {
                System.out.println("Test Case Failed");
            }

In Pom.xml below is the dependency:

selenium Java Version - 4.30.0 webdrivermanager - 6.0.0

My test case should run E2E and without any such exception.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.