Contributions
Re: How to work with dynamic web table?
Thank you Bharadwaj Actually, I do not know the row. Furthermore, I do not know how many pages (i.e. table pages) i have to browser through in order to find the account I am looking for. I will use the code you attached and let you know. Thank you Hagay2.7KViews0likes0CommentsRe: How to work with dynamic web table?
Thank youHKosova Your sample looks to simply straight forward :) The table is created dynamically by react so I am limited by my predictions. However, I will utilize your example and other equally productive examples I received here and will keep you updated. Thank you Hagay2.7KViews0likes0CommentsHow to work with dynamic web table?
I have attached a snapshot of the web table and I highlighted the areas that I am raising here. - We use react to dynamically create web tables. My questions are: 1. How do I act on the delete/edit activities of a particular given name? There is no way (that I found) that I can "count" the table rows and somehow identify the row number and then pass it the "col" number. 2. How do I read the table numerator (bottom page marked with red square)? Thank you :)2.7KViews0likes6CommentsRe: How to better identify objects in a web page.
Thank youColin_McCrae. I agree that it is somewhat inefficient but I am trying to avoid name mapping all together. tristaanogrehas a good point to narrow the search while pointing to the label object. What is the best way (without name mapping) to find the label (Gender)?1.7KViews0likes1CommentHow to better identify objects in a web page.
Hi I use the following properties to identify an object (drop-down-listbox). ObjectType: Panel contentText: Select... However, there are two objects with these properties and I am unable to find a third unique property to use. Any ideas? This is the method I use to locate the object: /** * Function Name:selectListbox * Description: find the object * @param {string} browserAUT * @param {string} lstobjType (example "Panel") * @param {string} lststr. - the text of the particular object (example "Select...") * @param {string} sublstobjType (example "Panel") * @param {string} sulststr. - the text of the particular object (example "Male") * @param (boolean) */ function selectListbox(browserAUT, lstobjType, lststr, sublstobjType, sulststr) { spUtils.beginlog("selectListbox"); var page = Sys.Browser(browserAUT).Page("*"); var lstbox_PropArray, lstbox_ValuesArray, lstbox; lstbox_PropArray = new Array("ObjectType", "contentText"); lstbox_ValuesArray = new Array(lstobjType, lststr); lstbox = page.FindChild(lstbox_PropArray, lstbox_ValuesArray, 2000); if (lstbox.Exists) { Sys.HighlightObject(lstbox); Log.Message(lstbox.FullName); lstbox.Click(); } else Log.Error("The object was not found."); /** * SUB LIST ITEM */ var sublstbox_PropArray, sublstbox_ValuesArray, sublstbox; sublstbox_PropArray = new Array("ObjectType", "contentText"); sublstbox_ValuesArray = new Array(sublstobjType, sulststr); sublstbox = page.FindChild(sublstbox_PropArray, sublstbox_ValuesArray, 2000); if (sublstbox.Exists) { Log.Message(sublstbox.FullName); sublstbox.Click(); } else Log.Error("The object was not found."); spUtils.endlog(); } Obviously the label name is unique, but I can't use it to open the list box. Attached file has a copy of the Object Spy properties. NOTE: The page is created by react and id's are dynamic so I can't use any react id confidently. Thank you1.8KViews0likes6CommentsRe: What is the suggested approach to declare global and call it from other units (functions).
I am probably lacking some information regarding implementing and utilizing the extension. I followed the instructions online, I can see the extension via the extension dialog box, however I am not able to use it. Any suggestions?1.6KViews0likes1Comment