Selenium Robot框架弹出式访问

Selenium Robot框架弹出式访问,selenium,robotframework,Selenium,Robotframework,我无法使用seleniumwebdriver robot框架访问弹出窗口 步骤: 站点“” 单击“按车辆搜索”选项卡\ 弹出窗口打开 我尝试使用带有一些定位器的“选择窗口”关键字访问弹出窗口,如id和name,但没有成功。它表明 ValueError: Window locator with prefix 'id' is not supported. 如何选择此弹出窗口并访问其上的元素?问题在于该弹出窗口位于iFrame内 <iframe id="popup_selector" src=

我无法使用
selenium
webdriver robot框架访问弹出窗口

步骤:

  • 站点“”
  • 单击“按车辆搜索”选项卡\
  • 弹出窗口打开
  • 我尝试使用带有一些定位器的“选择窗口”关键字访问弹出窗口,如
    id
    name
    ,但没有成功。它表明

    ValueError: Window locator with prefix 'id' is not supported.
    

    如何选择此弹出窗口并访问其上的元素?

    问题在于该弹出窗口位于iFrame内

    <iframe id="popup_selector" src="//carlightking.com/selector/selector-home-popup.php" width="100%"></iframe>
    

    问题是弹出窗口在iFrame中

    <iframe id="popup_selector" src="//carlightking.com/selector/selector-home-popup.php" width="100%"></iframe>
    

    Vivi,我尝试使用像id=“drop_1”和xpath=/*[@id=“drop_1”]这样的定位器来选择框架内的元素。但是我不能。您能建议我如何选择ifrmae中的元素吗。另外,我应该在哪里阅读更多关于它的内容,因为我刚刚开始学习它。Vivi,我尝试使用像id=“drop\u 1”和xpath=/*[@id=“drop\u 1”]这样的定位器来选择框架内的元素。但是我不能。您能建议我如何选择ifrmae中的元素吗。另外,我应该在哪里阅读更多关于它的信息,因为我刚刚开始学习它。