【发布时间】:2026-02-01 02:55:02
【问题描述】:
Step1 和 Step2 带我回到“LandingPage”。我想使用@current_page 验证元素。
这是在“LandingPage.rb”中定义的元素。
我试过这个,但没有运气。缺少什么?
Step1
Step2
1. fail if not @current_page.(on(LandingPage.cart_box.present?))
2. fail if not @current_page.(on(LandingPage.cart_box)).present?
3. fail if not @current_page.(on(LandingPage.cart_box_element)).present?
【问题讨论】:
标签: ruby watir verify current-page