zoukankan      html  css  js  c++  java
  • 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的资料是在是太少了)

  • 相关阅读:
    [非专业翻译] Mapster
    Js 之TreeGrid使用
    Java 之无限级分类
    Layui 之layedit动态赋值
    Java 之配置修改代码不重启服务器
    Java 之QueryRunner实现增删改查
    Java 之c3p0连接池 + dbutils例子
    PHP 之阿里云短信插件
    Java 之数据库工具类
    Java 之myEclipse破解代码
  • 原文地址:https://www.cnblogs.com/MarcLiu/p/13559357.html
Copyright © 2011-2022 走看看