Ask a Question

Verifying Operators in HTML

s5h
Contributor

Verifying Operators in HTML

Hi 



I am trying to verify a TextNode that has the value on screen "Unit of Measure ≥ "EA" "

When I use object Spy the contenttext property is "Unit of Measure = "EA"". If I pass the expectedvalue of "Unit of Measure = "EA" the function still fails 



Any ideas on how to verify these operator values?
4 REPLIES 4
Marsha_R
Community Hero

Hi Siobhan -



Did you try doubling all the quotes?  I've had to do that sometimes to verify a string.



""Unit of Measure = ""EA""""

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
ishan_07
Occasional Contributor

Hi,
You should use single qoute('') for whole expression and double qoute("") for special expression check. Example is as follows:
 "Unit of Measure = 'EA'"

ishan_07
Occasional Contributor

Hi, You should use single qoute('') for whole expression and double qoute("") for special expression check. Example is as follows: "Unit of Measure = 'EA' "

vthomeschoolmom
Super Contributor

What is the error/symptom of failure?

cancel
Showing results for 
Search instead for 
Did you mean: