o06v90o 发表于 2016-8-15 11:27:01

chrome sendKeys debug

定位元素OK,debug sendKeys方法到源码的RemoteWebDriver

protected Response execute(String driverCommand, Map<String, ?> parameters) {
    Command command = new Command(sessionId, driverCommand, parameters);
    Response response;

    long start = System.currentTimeMillis();
    String currentName = Thread.currentThread().getName();
    Thread.currentThread().setName(
      String.format("Forwarding %s on session %s to remote", driverCommand, sessionId));
    try {
      log(sessionId, command.getName(), command, When.BEFORE);
      response = executor.execute(command);

异常都么有,就停在这边了,直到超时,有遇到的小伙伴没?

梦想家 发表于 2016-8-15 14:28:23

http://blog.csdn.net/kaka1121/article/details/51850881

seagull1985 发表于 2016-8-15 14:48:52

是不是异常没抓到,用Throwable试下看能不能抓到
页: [1]
查看完整版本: chrome sendKeys debug