Contributions
Re: Finding object by using dynamic xpath, using Partial Content text
Thank you Alex. It was really good approach . I executed the following code , please verify and I am getting JScript runtime error 'page' is undefined . Please correct me where I am going wrong. I attach screen shot function VerifyGridValue(textValue) { Sys.Browser("*").Page("*").Wait("10000"); tableContainer = page.FindChild(['ObjectType', 'ObjectIdentifier'], ['Panel', 'grid_container'], 10); var Cells = tableContainer.FindAllChildren(['ObjectType', 'ObjectIdentifier'], ['Panel', 'uiGrid_0007_cell'], 10).toArray() ; console.log(Cells); }3.4KViews0likes2CommentsRe: Finding object by using dynamic xpath, using Partial Content text
I am trying to Url: http://ui-grid.info/ Angualr UI grid I am trying to get the values of the upper grid. I need to capture those values from the table and verify them with the values in Excel sheet in Test complete. I used all the three types of finding the object,none of them worked. Please verify following script and let me know where I am going wrong. Thank you for co operation in advance function VerifyGridValue(textValue) { Sys.Browser("*").Page("*").Wait("10000"); var obj = Sys.Browser("*").Page("*").FindChildByXPath(".//*[@id='150952'" + * + "'-grid-container']/div[2]/div]"); //Sys.Browser("*").Page("*").FindChildByXPath("//*[@class='" + ui-grid-canvas + "']") //var obj = Sys.Browser("*").Page("*").FindChildByXPath(".//*div[contains(@id, "150952") and contains(@id, "grid-container")]/div[2]/div]"); var val=obj.wValue(0,1); switch (true) { case IsSupported(obj, val) == true && textValue : Log.Checkpoint("Value match as expected"); break; default: Log.Error("Text values do not match!"); } Log.CallStackSettings; }5.7KViews0likes9CommentsRe: Finding object by using dynamic xpath, using Partial Content text
Hi Marsha, .//*[@id='15095 "27131388" -grid-container']/div[2]/div .//*[@id='15095 "28020936" -grid-container']/div[2]/div .//*[@id='15095 "28970483" -grid-container']/div[2]/div .//*[@id='15095 "28970483"-grid-container']/div[2]/div The one in quatations is keeping changing , I want everything else into I want find the object containing .//*[@id='15095 "*******"-grid-container']/div[2]/div. Please verify http://ui-grid.info/ I am trying to get the Values from the upper grid present in the page.5.8KViews0likes14CommentsFinding object by using dynamic xpath, using Partial Content text
Hi all, I have following dynamic xpath's .//*[@id='1509527131388-grid-container']/div[2]/div .//*[@id='1509528020936-grid-container']/div[2]/div .//*[@id='1509528970483-grid-container']/div[2]/div .//*[@id='1509528970483-grid-container']/div[2]/div I am trying to find the object by var obj = Sys.Browser("*").Page("*").FindChildByXPath(".//*[@id=150952'" + * + "'-grid-container']/div[2]/div]"); showing as syntax error. Can you please help me to find the error7.3KViews0likes17Comments