相关疑难解决方法(0)

自动化Firefox和Chrome浏览器

我正在寻找一种方法来自动化一些浏览器... Firefox和Chrome(现在只在Windows上)来自外部应用程序/进程.

有没有办法按照以下方式做事:

  1. 使用URL启动浏览器
  2. 让浏览器加载页面,运行脚本等.
  3. 检查DOM

作为参考,IE可以使用InternetExplorer.Application对象自动化,该对象可以使用以下javascript在shell脚本中创建,然后我可以使用DOM API:

var ie = new ActiveXObject('InternetExplorer.Application');
Run Code Online (Sandbox Code Playgroud)

这里的激励方案是自动化测试.我想加载包含测试代码的页面,并在测试运行后收集结果.

testing firefox automation google-chrome

20
推荐指数
1
解决办法
2万
查看次数

标签 统计

automation ×1

firefox ×1

google-chrome ×1

testing ×1