Contributions
Re: How to fetch values from this table?
Hi I tried in belowways even though I got error like "'ObjectType' is null or not an object" could pls tell me what mistake i did. I need to find ObjectType = RadioButton and want to click the radiobutton. Trial -1 var rbtn; rbtn = objName.rows(i).cells(0)["FindChild"]; rbtn = objName.Parent.Find("0bjectType", rbtn.ObjectType, 2); rbtn.Click(); Trial -2 Here I got error like "You are trying to call the "Click" method or property of an object that does not exist." var proValue, actValue, w; proValue = new Array("0bjectType", "RowIndex"); actValue = new Array("Cell",1); // Searches for the cell then focus that item w = objName["Find"](proValue, actValue, 1); w["Click"](); Thanks Dhanapal1.7KViews0likes0CommentsRe: How to fetch values from this table?
Hi jared Now I can able to get the values from the table. Which is dynamic table but I am unable to click the radiobutton in specfied row. once the search criteria is matched means i need to clik the radiobutton. If i used objName["cell"](i, 0)["Click"]() then it goes to row what row index stored in Namespacing file. please suggest me how to click that radio button which is presented in the row. the table hierachy is Table ->Cell ->Radiobutton function Test1() { var iexplore; var table1; var transdate, trcd, desc; iexplore = Aliases["iexplore"]; table1 = iexplore["pageMiserBa"]["frameThisapp"]["frameMainframe"]["formTheform"]["tableFieldstable"]["cell"]["panelDiv1"]["tableIdformattable"]; transdate ="05/02/11"; trcd ="CX"; desc=""; AppTbl_FindRowByColVal(table1, transdate, trcd, desc); } function AppTbl_FindRowByColVal(objName, val1, val2, val3) { if ((val1 != "" )&& (val2 != "" )&&(val3 != "" )) { for (var i = 0; i<= objName["RowCount"]; i++) { if ((objName["rows"]["item"](i).cells(1).innerText == val1) && (objName["rows"]["item"](i).cells(3).innerText == val2)) { objName["cell"](i, 0)["Click"](); //Log["Message"]("the given TransDate = " + transdate + "trcd = " + trcd + "description = " + description + "is correct"); } } }1.7KViews0likes0CommentsRe: Web cell properties are not getting displayed.
Hi I had gone through this thread and html table parsing. I am asking doubt from that article only. I am not getting the value for cel1.innerText value. pls help me in coding part. Verify the coding wheather i did any mistake in coding part. whenever I try to display it shows undefined or some time it will be blank. var i, j, Cel1; Log["AppendFolder"]("Table"); for (i = 0; i< 5; i++) { Log["AppendFolder"]("Row " + i); // Goes through cells for (j = 0; j < 4; j++) { // Obtains the cell Cel1 = table["Cell"](i, j); // Posts the cell's text to the log Log["Message"]("Cell " + j + ": " + aqObject["GetPropertyValue"](Cel1, "innerText")); Log["Message"]("Cell " + j + ": " + Cel1["innerText"]); } Log["PopLogFolder"](); } Log["PopLogFolder"](); }1.1KViews0likes0CommentsWeb cell properties are not getting displayed.
Hi I try to get the cell property unable to succeeded please anyone help me how to get the value of innertext property of Cell. I tried in below ways. Trial 1 function Test1() { var iexplore; var table; table = iexplore["pageMiserBa"]["frameThisapp"]["frameMainframe"]["formTheform"]["tableFieldstable"]["cell"]["panelDiv1"] "tableIdformattable"]; table["cell041111"]["Click"](30, 8); table["cellCx"]["Click"](6, 11); table["cellRwfpNetChange"]["Click"](37, 11); table["cell"]["radiobuttonRddetail"]["Click"](); table["cell113888991"]["DblClick"](31, 13); table["cell638988551855"]["Click"](12, 15); var i, j, Cel1; Log["AppendFolder"]("Table"); for (i = 0; i< 5; i++) { Log["AppendFolder"]("Row " + i); // Goes through cells for (j = 0; j < 4; j++) { // Obtains the cell Cel1 = table["Cell"](i, j); // Posts the cell's text to the log Log["Message"]("Cell " + j + ": " + aqObject["GetPropertyValue"](Cel1, "innerText")); } Log["PopLogFolder"](); } Log["PopLogFolder"](); } Trial 2 var proValue, actValue, w, arraylen; // w= new Array(); // Creates arrays of property names and values proValue = new Array("ObjectType", "RowIndex", “ColumnIndex”); actValue = new Array("cell", 4, 4); // Searches for the linknode select that item w = table["FindAllChild"](proValue, actValue, 2); Log["Message"]("Message: "+w["InnerText"]);22KViews0likes3CommentsHow to fetch values from this table?
Hi Ineed to get data from the web table which is dynamic table so, I used FindChild method to get the valuefrom table. I am unable toretrive those values. please see the below code and guide me how to getvalues from the table. In attachement I have attachednamemappingfile and table screen shot. How to fetch values from this table? function Test1() { var iexplore; var panel; var table; var proValue, actValue, w; iexplore = Aliases["iexplore"]; iexplore["ToURL"]("http://ifsmba009/transactor/Content/topPage.htm?*"); panel = iexplore["pageMiserBa"]["frameThisapp"]["frameMainframe"]["formTheform"]["tableFieldstable"]["cell"]["panelDiv1"]; table = panel["tableIdformattable"]; table["cell"]["radiobuttonRddetail"]["Click"](); table["cell111910"]["Drag"](18, 12, 257, 1); table["cell12500"]["Click"](35, 13); table["cell637801607095"]["Click"](28, 10); //w = new Array(); // Creates arrays of property names and values proValue = new Array("0bjectType", "innerText", "RowIndex"); actValue = new Array("Cell", "NDA. SUMMARY", 84); // Searches for the cell then focus that item w = table["FindChild"](proValue, actValue, 2); w["focus"](); Log["Message"]("Message: "+ w["innerText"]); // Object does not exit error is coming. }16KViews0likes5CommentsRe: Scrol bar handling
Hi please go thru the above thread once and read this. Actually I have to develop a general function for moving the table using scrollbar. If I click the scrollbar in the table( or page) it should come down or move. While calling the function I will pass the value that how many pages should come down. For example if I click the scrollbar 6 times 6 pages will come down. Based on the table size and page the scrollbar position will keep on change. While developing the common function we have to find out the scroll bar position where we have to exctaly click. Please let me know how to find out the scrollbar position in run time and how to use it or if you have some other idea to handle the scrollbar please share it with me. Thanks, Dhanapal4KViews0likes0CommentsRe: Scrol bar handling
Hi Thanks for immediate response. Please go thru the screen shots. In my application tabbed frame withscrollbars and table with scrollbars. in both casesobjects are not identified as scrollbar object and tableobject. just it identified as frame capture the location where i have clicked or draged. pleases giveme asuggestionor some example to tacle those problems.4KViews0likes0CommentsScrol bar handling
Hi I try to map the web scroll bar object into namemapping for .Net application. I can't map those object which is detected as frame object. frame = iexplore["pageMiserBa"]["frameThisapp"]["frameMainframe"]["formTheform"]["panelPagesdiv"]["frameIdtab1"]; frame["Drag"](1010, 185, 0, 293); frame["Click"](1016, 481); frame["Click"](1016, 481); frame["DblClick"](1015, 331); Any one tell me how to map as scrollbar object.24KViews0likes11CommentsOn Error Resume next statement like any statement is there in C# script.
In VBscript On Error Resume Next statement is there like that is there is any statement in C# Script. Actually I had writen bunch of code if any error happen means I can catch thru catch block. But please tell me how to resume next statement.18KViews0likes1Comment