I am trying to use the following syntax but can anyone tell me how I can use this as an example?
Element Should Contain locator, expected, message=
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.
Sign up to join this communityI am trying to use the following syntax but can anyone tell me how I can use this as an example?
Element Should Contain locator, expected, message=
Suppose you are expecting a particular locator to get value as "Payment was successful", so firstly store that in temp variable "response" and finds its value by "Get Text" and then compare it.
${response} Get Text xpath=/html/body/div/tr[2]/td/strong
Should Be Equal As Strings ${response} Payment was successful