Package org.openqa.selenium.chrome

Examples of org.openqa.selenium.chrome.ChromeDriver.navigate()


    System.out.printf("now accesss %s \n", secondUrl);
    dr.get(secondUrl);
    Thread.sleep(1000);

    System.out.printf("now back to  %s \n", firstUrl);
    dr.navigate().back();
    Thread.sleep(1000);
   
    System.out.printf("forward to  %s \n", secondUrl);
    dr.navigate().forward();
    Thread.sleep(1000);
View Full Code Here


    System.out.printf("now back to  %s \n", firstUrl);
    dr.navigate().back();
    Thread.sleep(1000);
   
    System.out.printf("forward to  %s \n", secondUrl);
    dr.navigate().forward();
    Thread.sleep(1000);
   
    System.out.println("browser will be close");
    dr.quit()
  }
View Full Code Here

//    选择所有的checkbox并全部勾上
    List<WebElement> checkboxes = dr.findElements(By.cssSelector("input[type=checkbox]"));
    for(WebElement checkbox : checkboxes) {
      checkbox.click();
    }
    dr.navigate().refresh();
   
//    打印当前页面上有多少个checkbox
    System.out.printf("%d\n", checkboxes.size());
   
//    选择页面上所有的input,然后从中过滤出所有的checkbox并勾选之
View Full Code Here

       

        SignalCreator sc = new SignalCreator(t.getZuluData());
        sc.createFile(path + "SIGNAL.CSV");
       
        driver.navigate().refresh();
        Thread.sleep(60000);
       
      } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.