fork download
  1. import org.openqa.selenium.WebDriver;
  2. import org.openqa.selenium.firefox.FirefoxDriver;
  3. import org.openqa.selenium.By;
  4. public class Web_Eg{
  5. public static void main(String args[])
  6. {
  7. WebDriver driver=new FirefoxDriver();
  8.  
  9. driver.manage().window().maximize();
  10. driver.get("https://w...content-available-to-author-only...k.com/");
  11. driver.findElement(By.name("email")).sendKeys("Kedarwagh39@gmail.com");
  12. driver.findElement(By.name("pass")).sendKeys("kedarwagh@2016");
  13. driver.findElement(By.id("u_0_u")).click();
  14. System.out.println("Login completed");
  15. driver.quit();
  16.  
  17. }
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 4
    public class Web_Eg{
               ^
SyntaxError: invalid syntax

stdout
Standard output is empty