Contributions
Re: finding object in human-written html files
Hi Marsha! I've tried your approach, but unfortunately I didn't get anything usefull (I've done some clicks on the radio buttons): function Test1() { var chrome_RenderWidgetHostHWND; chrome_RenderWidgetHostHWND = Aliases.browser.BrowserWindow.Chrome_RenderWidgetHostHWND; chrome_RenderWidgetHostHWND.HScroll.Pos = 0; chrome_RenderWidgetHostHWND.VScroll.Pos = 0; chrome_RenderWidgetHostHWND.Click(88, 45); chrome_RenderWidgetHostHWND.Click(37, 42); chrome_RenderWidgetHostHWND.Click(36, 66); } Thank you! R1.3KViews0likes3Commentsfinding object in human-written html files
Dear all, I have a very simple html (see the attached code) and I don't know how to make TestComplete see the radio buttons. I've tried looking with DisplayObjectSpy, but I can't see anything useful to point me to the radio buttons. In principle, I would need to check which of these two radio buttons is checked. I'm using TC12.42.3048.7 on x64 and for web testing I'm using Tree model. What I get in ObjectBrowser: The code: <!DOCTYPE html> <html> <head> <title>blablabla</title> </head> <body> <form action="testResultAcquire.html"> <fieldset> <legend>Test result:</legend> <form> <input type="radio" name="testResult" value="passed"> Test passed<br> <input type="radio" name="testResult" value="failed"> Test failed<br> </form> </fieldset> </form> </body> </html> Thank you! R1.4KViews0likes5CommentsRe: decompose WEB controls/get access to some custom WEB controls sub-objects
Hi Robert! I thank you for your answer. I'm currently working only in Google Chrome (GC) because this is the required browser to be used (for testing this project). The popup is different in Firefox (i.e. is more simpler: it just asks me for chossing the printer (please see the atachment)). I think this new type of controls/popup is something created by Google. Regarding your other question, I can confirm that using GC 64.0.3282.140 (official build 64bits), SmartbearTestExtension12.0.2 and TestComplete 12.42.3048.7 x64, when one wants to print something (i.e. an email from his/hers favourite email web page) some controls appear that are not visible with TestComplete - only some high level controls appear, and I don't know how to deal with its sub-object/children. Anyway, let's just think there is no incompatibility between GC and TC and return to my initial question: how/where to add this new controls to make them accessible by tests functions? (As an example/similar case (probably) I know that if one finds some weird WPF controls, he/she can add them to the project properties and TestComplete might understand them and it would decompose these controls allowing access to the desired objects/children; I don't know what is the control type/name to add (that's why I've attached some images with some properties in the initial post) and where to place them - this web application is not a WPF one:) ) I thank you once again for your time and support! R1.9KViews0likes1Comment- 1.2KViews0likes0Comments
decompose WEB controls/get access to some custom WEB controls sub-objects
Dear all, I'm testing the printing functionality of a web application (displayed with Chrome 68). I can see in the ObjectBrowser that there are some object corresponding to the page, but I do not have access to their children. How can I access things like buttons (the Print button) from the displayed page? Please see the attachements. Note1: you can see the properties of the object with the Print button in the screenshots; Note2: the objects are identified as Chrome_RenderWidgetHostHWND (ClassName) or as Chrome Legacy Window (WndCaption) or as Chrome_RenderWidgetHostHWND (WndClass); Note3: I know there is an older discussion ("Need Help to identify chrome legacy window object") but I don't know what to add to the TestedApplication (chrome executable?; web page url?) Thank you for your time and support! R2KViews0likes3Commentsgoogle chrome patches for TestComplete
Dear all, I'm currently using TestComplete 12.42.3048.7 (x64) on a windows 7 machine. I've noticed the GoogleChrome got to the 68 version and there are some patches for the next version of TestComplete but not for my version... Should I install the patches for the newest version of TestComplete (12.50...)? Would they work? (I'm asking this because some of my tests wait for the (Chrome) window to become active) Thank you! RSolved1.3KViews0likes2CommentsHow to stop CSV driver to interpret/change input data
Dear all, While I was using the CSV DDT Driver (to read some data from a csv file), I've noticed something weird: some of my data is interpreted/changed and I do not want this transformation to occur. For example: 2018-05-05 09:00:01 becomes Sat May 05 2018 09:00:01 GMT+0300 (GTB Daylight Time) UnitsUsed [V] becomes UnitsUsed (V) How can I configure the csv driver not to interpret the data (for any csv) and just give it to me as it is? I've noticed that if I quote the date & time data, it is shown correctly, but I would prefer to give a setting somewhere in the code and not change all the input/output files (already created) Unfortunately, I have no clue how to solve the second problem, i.e. the transformation of "[...]" into "(...)". Please see the attached code, input data file, testcomplete report. Thank you! R function CheckCsvDdtDriver() { var path = "D:\\test4.txt"; var text = aqFile.OpenTextFile(path, aqFile.faRead, aqFile.ctANSI); Log.Message("The following file is read using the CSV Driver: "+path+ ". See the 'Additional Info' tab for file content", text.ReadAll()); text.Close(); var driver = DDT.CSVDriver(path); var lineNumber = 1; Log.AppendFolder("Verify the column names."); for (var i =0; i<driver.ColumnCount; i++) Log.Message("The column "+i+" is \"" +driver.ColumnName(i)+ "\"."); Log.PopLogFolder(); while (! driver.EOF()) { Log.AppendFolder("Verify the row " +lineNumber+ "."); for (var i =0; i<driver.ColumnCount; i++) Log.Message("The column ["+i+"] = \"" +driver.Value(i)+ "\"."); DDT.CurrentDriver.Next(); lineNumber++; Log.PopLogFolder(); } DDT.CloseDriver(DDT.CurrentDriver.Name); Log.Message("There are "+(lineNumber-1)+" lines (with data) within this csv file"); }1KViews0likes2CommentsRe: Finding web table (sub-)components
Hi! Sorry for the late response. In the end, I managed to find the things using a two parameter search like this: PropArray = new Array("ObjectType", "innerHTML"); ValuesArray = new Array("Table", "<tbody*"); obj = parent.Find(PropArray, ValuesArray, 20); and PropArray = new Array("ObjectType", "innerHTML"); ValuesArray = new Array("Table", "<thead*"); obj = parent.Find(PropArray, ValuesArray, 20); It's a pity that testcomplete considers the tbody (table body) and the thead (table head) as simple panels. Thank you for your time and support! R1.8KViews0likes0Comments