0 votes
in Technology by (325k points)

Give an example for step definition using “Given” function?

1 Answer

0 votes
by (325k points)
For example to make visitor visit the site “Yahoo” the command we use for given

Given (/^ I am on www.yahoo.com$/) do

Browser.goto "http://www.yahoo.com."

end – This will visit www.yahoo.com

Related questions

...