Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testSiteCreation() throws Exception {
- String site = "wrymymthmw";
- String link = "link=wrymymthmw";
- driver.get("https://pastebin.com");
- driver.wait(600000);
- // ERROR: Caught exception [ERROR: Unsupported command [clickAt | //div[@id='ownerCreateBtn']/div/div/div/div | 5000]]
- driver.findElement(By.xpath("//*[@id=\"myform\"]/div[3]/div[1]/div[2]/span/span[1]/span/span[2]/b")).click();
- driver.findElement(By.xpath("//*[@id=\"myform\"]/div[3]/div[1]/div[2]/select/option[5]")).click();
- driver.findElement(By.id("siteTitle")).clear();
- driver.findElement(By.id("siteTitle")).sendKeys(site);
- // ERROR: Caught exception [ERROR: Unsupported command [selectFrame | index=1 | ]]
- assertTrue(isElementPresent(By.xpath("//div[3]")));
- assertTrue(isElementPresent(By.xpath("//span[@id='recaptcha-anchor']/div[5]")));
- driver.findElement(By.xpath("//span[@id='recaptcha-anchor']/div[5]")).click();
- // ERROR: Caught exception [ERROR: Unsupported command [selectFrame | relative=parent | ]]
- driver.findElement(By.id("createBtn")).click();
- // ERROR: Caught exception [unknown command []]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement