selenium - How to change already set chrome options while running tests?
问题描述
While sharing screen from webrtc application, user gets 3 options. 1. Share entire screen 2. Share specific tab 3. Share specific application
I need to automate these TC's. Have found a way to do it individually on different browser driver by setting chrome option like :
options = webdriver.ChromeOptions() options.add_argument("--auto-select-desktop-capture-source=Entire screen") -- for sharing entire screen.
But is there any way to perform all 3 cases using same driver by editing chrome option run time?
解决方案
推荐阅读
- php - 我想在 php 中更新后在接下来的 24 小时内禁用编辑按钮
- reactjs - 当父状态改变时组件卸载
- emacs - Emacs 警告:“没有可用的版本信息(emacs 需要)”
- elasticsearch - 基于先验查询拆分elasticsearch timelion可视化
- php - 如何使用@yield 将其传输到 laravel 中的变量
- javascript - 如何在 Javascript 中检索 get 请求的值
- java - 将生产代码修改为可测试/仅用于测试目的是最佳实践吗?
- python - 如何从文件中读取数组
- java - 有没有办法以编程方式创建 RollingFileAppender?
- php - 如何在迁移运行期间指定目录路径