Forum Discussion

s5h's avatar
s5h
Contributor
10 years ago

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

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3
    Hi Siobhan -



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



    ""Unit of Measure = ""EA""""
    • ishan_07's avatar
      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's avatar
    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'"