【问题标题】:RPA Express (Workfusion) Web Element seting a checkboxRPA Express (Workfusion) Web 元素设置复选框
【发布时间】:2019-02-01 02:36:02
【问题描述】:

我是 RPA Express (Workfusion) 的新手,我不知道如何使用 Web 元素将复选框设置为 true - 由 xpath 设置。 需要在变量中添加什么内容才能将复选框设置为 CHECKED 状态?

我不能使用单击鼠标功能,因为它会切换状态,而我的目标是确保复选框始终设置为 TRUE。

【问题讨论】:

    标签: checkbox rpa workfusion


    【解决方案1】:

    您可以执行以下操作:

    1. 使用网页元素

      • 获取模式
      • 勾选使用元素属性
      • 类型选中
      • 为输出选择一个变量
    2. 如果输出变量为真 -> 什么也不做

    3. 如果输出变量为假 -> 点击复选框

    【讨论】:

    • 嗨,谢谢。这是一种使代码有些复杂的变通方法(需要额外的 IF)。我很确定一定有一些直接的方法
    • 如果未选中 chechbox,则会引发错误:PlaybackException: Error execution TemplateAction[templateName=WebElementAction.ftl,id=65,name=Optional[WebElementAction],parent=-8,nextSibling=66 ,arguments=ActionArguments[varName=[set_value],elementAttribute=[checked],exactMatch=[true],xsi:type=[recorder:WebElementAction, recorder:WebElementAction],pollingInterval=[300],active=[true],searchInFrames =[false],delay=[0],useElementAttribute=[true],webElementLocatorType=[XPATH],actionDetails=[(get by //*[@id="cRefCompany"] xpath)],webElementLocator=[//* [@id="cRefCompany"]],awaitTimeout=[5000]]]
    猜你喜欢
    • 2018-12-31
    • 1970-01-01
    • 2018-07-02
    • 1970-01-01
    • 2018-02-02
    • 2019-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多