我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何使用php-webdriver处理Selenium中的打印对话框?

I am looking for a solution to handle the printer dialog using the facebook/php-webdriver.

I thought about using the WebDriverKeybord but it does not work.

$this->driver->getKeyboard()->sendKeys(WebDriverKeys::ESCAPE);

Print dialogue is not a part of the browser , so you can not use Selenium webdriver for it and has to be handles by some OS based automation software. You can use windows forms if u are running windows.

    SendKeys.SendWait(@"{Enter}");

近期文章

  • OSClass按ID项搜索具有此ID的结果特定产品
  • 将JS变量传递给php数组
  • PHP致命错误:找不到类'PEAR_Exception'
  • PHP输出消息
  • 通过doctrine find连接表
  • CodeIgniter删除函数没有命中mySQL数据库
  • Imghost不同的错误
  • Symfony2:类声明可能不会嵌套在FatalErrorException.php中
  • 会话对laravel 4没有价值
  • too long
  • PHP插入错误1064
  • MySQL数据库将特定表复制到带有.sh脚本的Sqlite
  • 无法在url中显示id,并且插入数据库的数据显示为空白
  • 在开关盒内使用标头位置
  • 无限滚动:向上滚动时意外的ajax请求
  • 帝国cms后台信息文档列表搜索处如何添加时间段功能?
  • C#如何通过星星类扩展出流星类,流星通过重写星星的show方法显示出一颗移动的星星
  • C++基础tcp通信练习问题 客户端连接服务端失败 返回值10038 求答
  • Java Web hibernate同一对象处理
  • 需要写4个正则,来来来。

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华