Contributions
How to get (X,Y) co-ordinate of the screen.
Hi All, I need to click particular place in a screen, in order to do that, First I need to know (X,Y) co-ordination of that point of the screen. Second I need to know VB scripts which performingmouse click action of that particular point of that screen. I need thisbecauseTestComplete is notrecognizingthat point of the screen, which was window application written by Java.21KViews0likes2CommentsRe: wText method not retrieve all the text data values
Hi Julia, I have testing window application which is build by using C# DotNet. Testcomplete mapping with the application textarea as followed. Sys.Process("AirTestHarness").WinFormsObject("frmPreprocessTestInterface").WinFormsObject("gbOutput").WinFormsObject("txtOutput") Initialthis text area is empty, but afterperformingsome action this text area get fill by system messages. I am using "wtext" method to retrive those text message as below. Set my_textarea = Sys.Process("AirTestHarness").WinFormsObject("frmPreprocessTestInterface").WinFormsObject("gbOutput").WinFormsObject("txtOutput") my_data1 = my_textarea.wText Issueis I am not getting all the text massages into "my_data1" variable.882Views0likes0CommentswText method not retrieve all the text data values
I am using “wText” method to retrieve large text value from the textarea field. I am not getting all the text values from the textarea when using “wText” method. What is the solution to get all the textarea value, rather than using “wText” method?22KViews0likes3CommentsWait for object to be appearing.
Without increasing time at "Auto wait timeout", is there any other way to wait for object to be appearing. My issue is I have to wait till the text appears in the text area. Following is my code (written in VB). (Testcomplete version 8.60.665.7) ---------------------- 'address the text area which text appear Set textBox1 = frmTestInterface.gbOutput.txtOutput sec_val=10000 Do If Not(textBox1.Exists) Then Delay(sec_val) textBox1.RefreshMappingInfo sec_val = sec_val + 10000 Else Exit Do End If Loop 'get the text values text_val1 = textBox.wText ------------------22KViews0likes1CommentRe: Delay VB scripts not working
VB codecorrections. Please ignore the previous VB code ----- Sub Test() Dim Test_Object_Name Test_Object_Name = Sys.Process("Test").WinFormsObject("frmMenu").WinFormsObject("txtOutput") If Not(Test_Object_Name.Exists) Then Sec_val = 10000 Do Delay(Sec_val) Test_Object_Name.Refresh sec_val = sec_val + 10000 If Test_Object_Name.Exists Then Exit Do End If Loop End If End Sub Sys.Process("Test").WinFormsObject("frmMenu").Close740Views0likes0CommentsRe: How to launch application without using Testesapps
I slove the issue following is the VB scripts sample , this open the test application which on given file location. Sub OpenTestApplication Dim WshShell, WshShellExec ' Open test application Set WshShell = Sys.OleObject("WScript.Shell") Set WshShellExec = WshShell.Exec("C:\MyApp\bin\TestApp.exe") End Sub3KViews0likes0CommentsDelay VB scripts not working
I have written some code in VB to check whether objectexistsor notbeforeperforming future tasks. But Testcomplete not working as expected it's just jump into last line of the code and display that window does not exists. --------------------------------------------------------- Sub Test() Dim Test_Object_Name Test_Object_Name = Sys.Process("Test").WinFormsObject("frmMenu").WinFormsObject("txtOutput") If Not(Test_Object_Name.Exists) Then Sec_val = 10000 Do Delay(10000) Test_Object_Name.Refresh sec_val = sec_val + 10000 IfTest_Object_Name.Exists Then Exit Do End If Loop End If End Sub Sys.Process("Test").WinFormsObject("frmMenu").Close ----------------------------------------------------------20KViews0likes3Comments