in Technology by (1.8m points)

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

1 Answer

0 votes
by (1.8m 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

0 votes
asked Oct 15, 2021 in Education by JackTerrance (1.8m points)
...