liflab / cornipickle

Versatile web application testing tool
4 stars 3 forks source link

#5: Comparisons not working properly #5

Closed Faterou closed 7 years ago

Faterou commented 9 years ago

Originally reported by: Gabrielle Bastien (Bitbucket: gabrielle_bastien, GitHub: Unknown)


Comparisons of anything with a number always return true, even if it should not. For example: "$b's width equals 100" returns true when width equals 90 and 100.

Also, comparisons that do not make sense still return true. Examples: "$b's text equals 100" (comparison between string and number should return false) "$b's glkf matches "hdjl"" (no attribute is called glkf, and nothing should match hdjl)


Faterou commented 9 years ago

Original comment by Gabrielle Bastien (Bitbucket: gabrielle_bastien, GitHub: Unknown):


The problem was not in the grammar, but in the cornipickle code in the browser examples (There was no metadata)