describe "Ticketing system",:template dobefore(:all) do
@b = Watir::Browser.start("google.com",:chrome)
end
it 'can create a ticket' do
@b.link(:text => "Create ticket")
ticket = @b.div(:id => "ticket").text
expect(ticket).to eql(123456)
end
it 'can lookup a created ticket' do
@b.text_field(:id => "search").set(ticket)
end
after(:all) do
@b.close rescue nil
end
end--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/1ec2fa65-8c60-4fda-aa83-5f074c0bb69a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.