I installed eclipse to work with Selenium, my code was running successfully until I restarted my system. After restarting the system and running the existing code which was save before restarting the system, it is running successfully, but Editor does not contain main type
message is displayed after changing the existing code with the below simple code, could anybody please help
Code:
package newpackage;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class MyClass {
public static void main(String[] args) throws InterruptedException
{
System.setProperty("webdriver.chrome.driver", "./drivers/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.facebook.com");
String tagName = driver.findElement(By.id("email")).getTagName();
}
}