使用Selenium Webdriver打开时不可见的Chrome浏览器不可见。而直接在chrome中打开时,相同的网址有效

时间:2019-06-13 12:01:25

标签: selenium browser webdriver

我尝试使用网络驱动程序代码打开应用程序,但不支持浏览器。我可以直接在同一网址打开

检查about :: config以检查两个窗口之间的差异

2019年6月13日 17:22

常规Chrome窗口:

  

Google Chrome 74.0.3729.169(正式版)(64位)(同类:稳定)   修订版78e4f8db3ce38f6c26cf56eed7ae9b331fc67ada-refs / branch-heads / 3729 @ {#1013}   操作系统Windows 10操作系统内部版本17134.706 JavaScript V8 7.4.288.28   Flash 32.0.0.207 C:\ Users \ xxx \ AppData \ Local \ Google \ Chrome \ User   Data \ PepperFlash \ 32.0.0.207 \ pepflashplayer.dll用户代理Mozilla / 5.0   (Windows NT 10.0; Win64; x64)AppleWebKit / 537.36(KHTML,如Gecko)   Chrome / 74.0.3729.169 Safari / 537.36命令行“ C:\ Program Files   (x86)\ Google \ Chrome \ Application \ chrome.exe“ --flag-switches-begin   --flag-switches-end可执行路径C:\ Program Files(x86)\ Google \ Chrome \ Application \ chrome.exe配置文件   路径C:\ Users \ xxxx \ AppData \ Local \ Google \ Chrome \ User Data \ Default

变化d01ab0d3-ca7d8d80

Webdriver窗口

  

Google Chrome 74.0.3729.169(正式版)(64位)(同类:稳定)   修订版78e4f8db3ce38f6c26cf56eed7ae9b331fc67ada-refs / branch-heads / 3729 @ {#1013}   操作系统Windows 10操作系统内部版本17134.706 JavaScript V8 7.4.288.28   Flash 24.0.0.189内部尚未存在的用户代理Mozilla / 5.0   (Windows NT 10.0; Win64; x64)AppleWebKit / 537.36(KHTML,如Gecko)   Chrome / 74.0.3729.169 Safari / 537.36命令行“ C:\ Program Files   (x86)\ Google \ Chrome \ Application \ chrome.exe“   -禁用后台网络-禁用客户端网络钓鱼检测-禁用默认应用程序-禁用挂机监视器-禁用弹出窗口阻止-禁用重新启动提示- disable-sync --disable-web-resources --enable-automation --enable-blink-features = ShadowDOMV0 --enable-logging --force-fieldtrials = SiteIsolationExtensions / Control --ignore-certificateerrors --load-extension =“ C:\ Users \ xxx \ AppData \ Local \ Temp \ scoped_dir21628_16208 \ internal”   --log-level = 0 --no-first-run --password-store = basic --remote-debugging-port = 0 --start-maximized --test-type = webdriver --use-mock-keychain- -user-data-dir =“ C:\ Users \ xxx \ AppData \ Local \ Temp \ scoped_dir21628_14652” --flag-switches-begin --flag-switches-end data :,可执行路径C:\ Program Files(x86) \ Google \ Chrome \ Application \ chrome.exe   轮廓   路径C:\ Users \ xxx \ AppData \ Local \ Temp \ scoped_dir21628_14652 \ Default

修改后:

  

Google Chrome 74.0.3729.169(正式版)(64位)(同类:稳定)   修订版78e4f8db3ce38f6c26cf56eed7ae9b331fc67ada-refs / branch-heads / 3729 @ {#1013}   操作系统Windows 10操作系统内部版本17134.706 JavaScript V8 7.4.288.28   Flash 32.0.0.207 C:\ Users \ xxx \ AppData \ Local \ Google \ Chrome \ User   Data \ PepperFlash \ 32.0.0.207 \ pepflashplayer.dll用户代理Mozilla / 5.0   (Windows NT 10.0; Win64; x64)AppleWebKit / 537.36(KHTML,如Gecko)   Chrome / 74.0.3729.169 Safari / 537.36命令行“ C:\ Program Files   (x86)\ Google \ Chrome \ Application \ chrome.exe“   --disable-background-networking --disable-bundled-ppapi-flash --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking-禁用重新发布提示-禁用同步-禁用Web资源-启用自动化-启用闪烁功能= ShadowDOMV0-启用日志记录--force-fieldtrials = SiteIsolationExtensions / Control-忽略-certificate-errors --load-extension =“ C:\ Users \ xxx \ AppData \ Local \ Temp \ scoped_dir40376_20418 \ internal”   --log-level = 0 --no-first-run --password-store = basic --ppapi-flash-path =“ C:\ Users \ xxx \ AppData \ Local \ Google \ Chrome \ User Data \ PepperFlash \ 32.0.0.207 \ pepflashplayer.dll”   --ppapi-flash-version = 32.0.0.207 --remote-debugging-port = 0 --start-maximized --test-type = webdriver --use-mock-keychain --user-data-dir =“ C: \ Users \ xxx \ AppData \ Local \ Temp \ scoped_dir40376_6930“ --flag-switches-begin --flag-switches-end data :,可执行路径C:\ Program Files(x86)\ Google \ Chrome \ Application \ chrome.exe   轮廓   路径C:\ Users \ xxx \ AppData \ Local \ Temp \ scoped_dir40376_6930 \ Default

修改代码后,我获得了正确的Flash版本,但问题仍然存在

0 个答案:

没有答案