I am trying to search for object using the Name attirbute but it does not seems to work, below is my code :
firstly i search for object using contentText then i obtain the Name which is successful and the result is :
PropValue = Cell(1, 2) then when i use PropValue to search for contentText, it does not work, please help.
var page = Sys.Browser("Chrome").Page("*"); var link = page.NativeWebObject.Find("contentText","ABC","td"); link.Click(); var PropValue = aqObject.GetPropertyValue(link, "Name"); Log.Message(PropValue);
var GetValue2 = page.NativeWebObject.Find("Name",PropValue,"td"); var intPass = aqObject.GetPropertyValue(GetValue2, "contentText"); // the test fail here, no object return Log.Message(intPass);
Regards, /Alex [Community Hero] ____ [Community Heroes] are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Posts made by [Community Heroes] may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. The [Community Hero] signature is used with permission by SmartBear Software. https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame ================================