Advertisement
ArseniyCH

PastebinTest

Dec 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. @Test
  2. public void testSiteCreation() throws Exception {
  3. String site = "wrymymthmw";
  4. String link = "link=wrymymthmw";
  5. driver.get("https://pastebin.com");
  6. driver.wait(600000);
  7. // ERROR: Caught exception [ERROR: Unsupported command [clickAt | //div[@id='ownerCreateBtn']/div/div/div/div | 5000]]
  8. driver.findElement(By.xpath("//*[@id=\"myform\"]/div[3]/div[1]/div[2]/span/span[1]/span/span[2]/b")).click();
  9. driver.findElement(By.xpath("//*[@id=\"myform\"]/div[3]/div[1]/div[2]/select/option[5]")).click();
  10. driver.findElement(By.id("siteTitle")).clear();
  11. driver.findElement(By.id("siteTitle")).sendKeys(site);
  12. // ERROR: Caught exception [ERROR: Unsupported command [selectFrame | index=1 | ]]
  13. assertTrue(isElementPresent(By.xpath("//div[3]")));
  14. assertTrue(isElementPresent(By.xpath("//span[@id='recaptcha-anchor']/div[5]")));
  15. driver.findElement(By.xpath("//span[@id='recaptcha-anchor']/div[5]")).click();
  16. // ERROR: Caught exception [ERROR: Unsupported command [selectFrame | relative=parent | ]]
  17. driver.findElement(By.id("createBtn")).click();
  18. // ERROR: Caught exception [unknown command []]
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement