Contributions
Re: Can't take cell object from table
Problem is solved. I obtain object from the table on two steps - first I take a table using class name property and then look in the table for object: tablePersons = page.Find( new Array( "className" ), new Array( "table-property-persons" ), 100); if( tablePersons["Exists"]) { createBtn = tablePersons.Find( new Array("className"), new Array("js-add button add"),100); if( createBtn["Exists"]) { createBtn["Click"](); } }776Views0likes0CommentsCan't take cell object from table
Hello again, my problem today is with cell object from table. When I use follow script to take cellit return me in Watch list only [Object]: page = Aliases["iexplore"]; findFirstName = page.FindChild( new Array( "ColumnIndex", "ObjectType", "RowIndex", "innerText" ), new Array( "0", "Cell", "7", name ),100); I check for other objects with sameparameters, but forthis cellcombinaion on parametersis absolutly unique and don't have any repetition. Also I do some tests with GetTable command as in Parsing HTMLTables chapter, but it return me exception when go on row with GetTable. Can you suggest me decision for this problem? Besr Regard Svetoslav9.5KViews0likes3CommentsRe: Regular expression in FindChild method
I check it, but unfortunately it doesn't work. With \r\n it go on main panel in tested web-page and set for selectElement main panel on page, with only \n - nothing happened, selectElement in watch list return object, but without additional parameters (object is not expandble). Web-page is main panel with few childs -expandble panels. Whathappened if I create additional variable and there create expression with element and then use this variable in FindChild?1.8KViews0likes0CommentsRegular expression in FindChild method
Hello, Todaty, my question is aboutcorrect syntax on regular expression in FindChild method. I have follow code part: selectElement = page.FindChild( new Array( "ObjectType", "innerText" ), new Array( "Panel", "*"+element+"$"+"*" ),100); where variable element is part of multi row string. I try to catch element and end row after it, but my current C#script code is wrong. Can help me? Best Regards, Svetoslav11KViews0likes4CommentsHow to call function from other file
Hello, While I do automationswith TCL, Imove all my functions in the one or few files and just call themfrom there. In my test file I create just Main test function and using "source" command to decelerate path with my "function library" files. How I can to do it in TC8 using C# script? My problem is that now in every test file is mess of functions and many of this functions are used from more then one tests. Regards, Svetoslav11KViews0likes2CommentsRe: how to get the current url?
Ok, I found it. My working script is: var newpage = Sys.Desktop.ActiveWindow(); var newpageUrl = newpage.Page("*").URL; var s; s = newpageUrl["split"]("\/"); for( i=0;i<s["length"]; i++) { if( s == "Property" && i < s["length"] - 1) { propertyId = s[i+1]; } }6.3KViews0likes0Comments