Forum Discussion
Raj_Qa
13 years agoContributor
Robert,
There are some extra spaces in the inner text but I got rid of them, id I do not do so then testcomplete freezes or goes very slow. This is what the actual property checkpoint looks like
Call aqObject.CheckProperty(sys.process("firefox").page("*").document.all.Item("criteria"), "innerText", cmpContains, Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" "&Chr(10)&" Used,"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" 2009-2011"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" Jaguar"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" ")
But I got rid of those extra spaces in the hidden text .
Call aqObject.CheckProperty(sys.process("firefox").page("*").document.all.Item("criteria"), "innerText", cmpContains, " Remove Used, Remove 2009-2011 Remove Remove ")
There are some extra spaces in the inner text but I got rid of them, id I do not do so then testcomplete freezes or goes very slow. This is what the actual property checkpoint looks like
Call aqObject.CheckProperty(sys.process("firefox").page("*").document.all.Item("criteria"), "innerText", cmpContains, Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" "&Chr(10)&" Used,"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" 2009-2011"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" Jaguar"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" ")
But I got rid of those extra spaces in the hidden text .
Call aqObject.CheckProperty(sys.process("firefox").page("*").document.all.Item("criteria"), "innerText", cmpContains, " Remove Used, Remove 2009-2011 Remove Remove ")