开发者

content matching in iframe

开发者 https://www.devze.com 2023-03-09 07:26 出处:网络
Here is the scenario, i\'d like to check a iframe on my page to make sure certain content exists. and i tried:

Here is the scenario, i'd like to check a iframe on my page to make sure certain content exists. and i tried:

within_frame 'my_frame_name' do 
  find('#id_of_a_div').value should match 'match me please' 
end

tried a couple of variations, none w开发者_StackOverflow社区orked.

any suggestions?


within_frame 'my_frame_name' do 
  find('#id_of_a_div').value.should == 'match me please' 
end
0

精彩评论

暂无评论...
验证码 换一张
取 消