【问题标题】:close popup in CRM Dynamics with RobotFramework使用 RobotFramework 在 CRM Dynamics 中关闭弹出窗口
【发布时间】:2023-03-15 14:34:02
【问题描述】:

这个问题困扰了我几个小时。

我正在尝试关闭 CRM Dynamics 中的欢迎屏幕弹出窗口,但我似乎无法为 RobotFramework(在 Eclipse 中)获得良好的定位器匹配。 具体按钮和周边的源代码附在截图中,供大家参考。

我为关闭按钮(图片)尝试了以下定位器策略:

点击元素xpath=//img[@alt='Sluiten']

点击元素xpath=//img[contains(@alt,'Sluiten')]

点击元素xpath=//div[@class='navTourButtonImage']

点击元素xpath=//*[@id="navTourCloseButtonImage"]/img

我还在页面加载后实现了充足的睡眠时间,但这并没有影响任何事情。有什么建议吗?

看起来控件位于某种 iframe 中,如下所示:

【问题讨论】:

    标签: selenium robotframework robotframework-ide


    【解决方案1】:

    我通过选择框架解决了它:

    Select Frame   InlineDialog_Iframe
    Click Element    xpath=//img[@alt='Sluiten']
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多