From the course: Cucumber Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Invoke a page: Running test

Invoke a page: Running test

From the course: Cucumber Essential Training

Start my 1-month free trial

Invoke a page: Running test

Let me show you how this text will look like and this is my web page and if you inspect this page, or relevant to us is this text followed will read something like Final Bill Amount is: $ This is the value that I want to compare with our expectedValue, The next thing I'm going to do This is just for debugging purpose. and this text should contain some additional text which will be Final Bill Amount is: $ followed by the expectedValue followed by the expectedValue and I need to convert this toString and this will be my code. Now this expectedValue is not available to this method yet, so I'm just going to copy this from the other method and paste it here. Now this value is available to us. Now this will return a true or a false, so I'll just go ahead and define a Boolean so I'll just go ahead and define a Boolean to capture that information. And let's output this value. And show here Matched. And show here Matched. We have all our web…

Contents