• Microsoft UI Automation Framework work with Chrome(使用FlaUI抓取chrome网页元素)


    参考网址:https://www.e-learn.cn/tag/microsoft-ui-automation

    https://www.e-learn.cn/topic/3662339

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/6f0a1287-1d75-45ae-93a6-6471932fb546/howto-use-cnet-uiautomation-with-chrome?forum=windowsaccessibilityandautomation

    https://social.msdn.microsoft.com/Forums/en-US/2bfe50c1-7382-43e1-9a17-71eeb1c2faec/microsoft-uiautomation-not-able-to-fetch-chromes-context-menu-elements?forum=netfxbcl

    开发中使用微软UI自动化框架FlaUI,在抓取chrome网页元素时,无法抓取到网页内元素,经查资料发现是chrome启动方式不对,具体原因如下:

    Chrome page content can be seen by UIA if you run chrome --force-renderer-accessibility. Only for existing Chrome process it won't work. Though user can create a new tab   chrome://accessibility manually and enable UIA for all or some chosen pages. This method also works for AT-SPI accessibility technology on Linux. Of course, Selenium WebDriver is an industry standard here. But another way exists. Both Mozilla and IE support UIA by default.

    设置chrome以“--force-renderer-accessibility”启动,或者在chrome://accessibility页中选中UIA。(ps:国内关于FlaUI的资料是在是太少了)

  • 相关阅读:
    TF400916错误修复办法
    架构优化
    .net 动态代理的泛型方法支持问题
    解决Kafka-1194问题
    SOA服务总线设计
    SOA初探
    重构心法——提高代码复用率
    重构心法——拆分大对象
    重构心法——你应该这样写方法
    反爬虫那些事儿
  • 原文地址:https://www.cnblogs.com/MarcLiu/p/13559357.html
Copyright © 2020-2023  润新知