Skip to content

assertQRCodeFromString

  • Purpose
  • This command reads the src attribute of the given locator and decodes the barcode/QR code. It asserts the decoded value of the image according to the specified locator. This command gets the image URL of the locator present in the src attribute. The execution gets aborted if this command fails. To use this command, the locator should have the src attribute with the URL of the barcode/QR Code. The value that has to be verified should be a plain text
  • Syntax
  • assertQRCodeFromString(locator,text/variableName)
  • Target
  • locator of the image
  • Value
  • text/variableName
  • Return Value
  • N/A 

Feedback and Knowledge Base