zoukankan      html  css  js  c++  java
  • webdriver原理、协议

    1、webdriver client的原理是什么?

    当测试脚本启动firefox的时候,selenium-webdriver 会首先在新线程中启动firefox浏览器。如果测试脚本指定了firefox的profile,那么就以该profile启动,否则的话就新启1个profile,并启动firefox;

          firefox一般是以-no-remote的方法启动,启动后selenium-webdriver会将firefox绑定到特定的端口,绑定完成后该firefox实例便作为webdriver的remote server存在;

    客户端(也就是测试脚本)创建1个session,在该session中通过http请求向remote server发送restful的请求,remote server解析请求,完成相应操作并返回response

    客户端接受response,并分析其返回值以决定是转到第3步还是结束脚本;

    webdriver是按照server – client的经典设计模式设计的

    2webdriver的协议是什么?

    The WebDriver Wire Protocol

    3、启动浏览器的时候用到的是哪个webdriver协议?

    http

    逆风的方向更适合飞翔,不怕千万人阻挡,只怕自己投降!
  • 相关阅读:
    css flex布局应用
    Java 中 List、HashTable、HashMap、TreeMap
    Java 面向对象的三大特征
    Java-冒泡排序算法
    单例模式- 实现方式
    Mac
    Appium DesiredCapabilities 参数设置
    Mac- appium 环境配置
    PHP安装+使用
    mac 安装protobuf,并编译
  • 原文地址:https://www.cnblogs.com/jackzz/p/9125703.html
Copyright © 2011-2022 走看看