code_junkie

How to compile a java application which uses Google webdriver from comand line without ant

Nov 10th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ^
  2.  
  3. ^
  4.  
  5. ^
  6.  
  7. ^
  8.  
  9. ^
  10.  
  11. ^
  12.  
  13. ^
  14.  
  15. WebDriver driver = new HtmlUnitDriver();
  16.  
  17. ^
  18.  
  19. WebDriver driver = new HtmlUnitDriver();
  20.  
  21. ^
  22.  
  23. WebElement element =
  24.  
  25. ^
  26.  
  27. driver.findElement(By.xpath("//input[@name = 'q']"));
  28.  
  29. ^
  30.  
  31. javac -cp /home/iyo/webdriver/common/build/webdriver-common.jar:/home/iyo/webdriver/common/build/webdriver-htmlunit.jar FirstTest.java
Add Comment
Please, Sign In to add comment