Git Product home page Git Product logo

chromelink's Introduction

chromelink

这是一个用于chrome浏览器上的远程Web自动化测试工具,它依据Chrome DevTools Protocol协议编写而来,并使用EPL公开了一套标准且友好的脚本调用接口。

features(特性)

  • 可同时使用多个chrome进行自动化测试
  • 多个chrome间可独立使用缓存
  • 提供了完善的cookie 访问方法
  • 可以动态的清除缓存以及cookie
  • 集成了丰富的常用自动化测试方法
  • 表达式求值及运算
  • 输入设备的支持(键盘、鼠标、touch)
  • 可以建立仿真的设备环境(屏幕、UA、角度、方向、touch等等)
  • 支持模拟触摸设备(可使用: 合成/捏合、横向/纵向滚动、触摸(Tap)等等手势动作)
  • 支持模拟地理位置信息

complie(only windows)

可使用Visual Studio 2017编译本工具源代码。

Operating

在使用工具前你可能需要拥有一个内核版本在54及以上的chrome浏览器

启动chrome

cd "C:\Program Files (x86)\Google\Chrome\Application\"
chrome --remote-debugging-port=9222 --user-data-dir=<some directory>

其中:

  • --remote-debugging-port=9222选项意为开启chrome浏览器的远程调试支持,9222则具体表示为用以远程调试的端口号。
  • --user-data-dir=<some directory>选项可以让chrome浏览器将缓存数据放在你所定义的文件夹中。

在浏览器中访问http://localhost:9222即可查看在chrome浏览器中所有打开的标签页面。

操作chrome tags

获取所有打开的标签信息:

gettags

“ec726540-0397-4517-884e-caca92abbdf7” | “百度一下,你就知道” | “https://www.baidu.com/”
“0edcf6d5-e9e2-4e23-9a1d-254aa9a52cc3” | “黑猫 - 易浏览器项目” | “http://www.ps-works.cn/”

打开新的标签:

newtag

“cec7969b-a25c-4548-b3d0-786c4a6e42af” | “百度一下,你就知道” | “https://www.baidu.com/”

关闭标签:

closetag


激活标签:

activetag


Sample code

跳转URL

jmpurl


执行表达式

eval

chromelink's People

Contributors

kirino17 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.