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

Open 1 Answers 14 Views Technology

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

1 Answer

0
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
by (274k points)
...