Error: Could not find or load main class org.openqa.grid.selenium.GridLauncherV3

168 views
Skip to first unread message

Princess Ibironke yekinni

unread,
May 28, 2019, 2:41:04 AM5/28/19
to selendroid
 Hello Team, 

I'm trying to automate a webpage with this imported java package on Eclipse. 

package com.example.test;

// Generated by Selenium IDE

import org.junit.Test;

import org.junit.Before;

import org.junit.After;

import static org.junit.Assert.*;

import static org.hamcrest.CoreMatchers.is;

import static org.hamcrest.core.IsNot.not;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.firefox.FirefoxDriver;

import org.openqa.selenium.Dimension;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.interactions.Actions;

import org.openqa.selenium.support.ui.ExpectedConditions;

import org.openqa.selenium.support.ui.WebDriverWait;

import org.openqa.selenium.JavascriptExecutor;

import org.openqa.selenium.Alert;

import org.openqa.selenium.Keys;

import java.util.HashMap;

import java.util.List;

import java.util.ArrayList;

import java.util.Map;

public class BT03validatelogin {

  private WebDriver driver;

  private Map<String, Object> vars;

  JavascriptExecutor js;

  @Before

  public void setUp() {

    driver = new FirefoxDriver();

    js = (JavascriptExecutor) driver;

    vars = new HashMap<String, Object>();

  }

  @After

  public void tearDown() {

    driver.quit();

  }

  @Test

  public void BT03validatelogin() {

    driver.get("http://bloomeditor.paylater.ng/login");

    assertThat(driver.findElement(By.cssSelector(".signin-head-txt")).getText(), is("Sign in to your account"));

    driver.findElement(By.id("email")).click();

    driver.findElement(By.id("email")).sendKeys("pri...@mailinator.com");

    driver.findElement(By.id("phone")).click();

    driver.findElement(By.id("phone")).sendKeys("12345678");

    driver.findElement(By.cssSelector(".btn")).click();

    Thread.sleep(1000);

    assertThat(driver.getTitle(), is("Welcome | Bloom by Carbon"));

  }

private Object is(String string) {

// TODO Auto-generated method stub

return null;

}

}



Whenever I run that script above, I keep getting the below error message:

Error: Could not find or load main class org.openqa.grid.selenium.GridLauncherV3

Caused by: java.lang.ClassNotFoundException: org.openqa.grid.selenium.GridLauncherV3


Could this be a rename issue or what is the possible solution to rectify this problem?

Thanks


Reply all
Reply to author
Forward
0 new messages