首页 > 解决方案 > 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?

标签: seleniumwebrtcchrome-options

解决方案


推荐阅读