开发者

content matching in iframe

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜