Forum Discussion

sakorn_s's avatar
sakorn_s
Occasional Contributor
12 years ago

Checkpoint can use ".*"



Ex.

var data = table.rows.item(1).cells.item(1);

//data.textContent = 3 KB



i can use code in below?

var res = aqObject.CheckProperty(data, "textContent", cmpEqual, "3.*")

  • Hi Sakorn.


     


    You should use aqObject.CheckProperty(data, "textContent", cmpMatches, "3 (.)*") to achieve this checkpoint.


     


    You should also look for regular expression.


     


    Regards,


     


    Guillaume.


  • Hi Sakorn.


     


    You should use aqObject.CheckProperty(data, "textContent", cmpMatches, "3 (.)*") to achieve this checkpoint.


     


    You should also look for regular expression.


     


    Regards,


     


    Guillaume.