hello，my script two Test Object are equal，why the result is return “is not equal” ？
TestObject is more than just its properties. When you’re using verifyEqual you’re essentially calling the
equals method of the TestObject which also compares other properties which are different between two objects. If you need to verify if two TestObjects please use
getPropeties on the TestObject and compare the returned results instead.
oh ~ thank you very much, but how to use getPropeties:哭泣:
my script :
Mobile.verifyEqual(getProperties(findTestObject(‘forum tab/topic list_title’)), getProperties(findTestObject(‘forum tab/posting page/post_title_item_txt_edited’)))
It looks like you’re interested in a text value… Perhaps try GetText. Output is a variable (you name it). Then verify that output (variable) and expected text are same.
If the value is within the xpath (is not visible text value eg a color etc) then use another Get method
thank you very much， I think I’ve solved it
thank you very much，I’ve got it
thank you ~ I’ve solved it