Accessing elements from within a iFrame -fails in watir-webdriver 0.6.6 - works fine in 0.6.4

笑着哭i 提交于 2019-12-01 13:49:16

Watir-webdriver 0.6.5 has changed the way locating frames works.

  • Before (ie pre-0.6.5), browser.frame located frame and iframe elements.
  • Now, browser.frame locates frame elements and browser.iframe locates iframe elements.

You will need to change your frame accessor to match the new rules (when you migrated to 0.6.5 or later). The second parameter needs to change from :frame to :iframe:

element(:select_frame, :iframe, :src => /MyApplicantPortal\/Applicant\/\d+\/SelectOrderTemplate\?t=1/)

I am in the process of releasing a new version of the page-object gem that addresses this issue. Should be out in a day or two.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!