Forum Discussion
- HumashankarChampion Level 3
Hi
To use the TcxProgressBar object in TestComplete script using VBScript
- Try to add a reference to the TcxProgressBar object in your script by adding the following line:
Const TcxProgressBar = 0
This makes TestComplete to use the TcxProgressBar object from the TestComplete SDK.
- Find to Get a reference to the progress bar control on the desktop application's window.
You can do this using the Window object and the GetControl method
Set progressBar = Window("MyApp").GetControl("ProgressBar")
Replace "MyApp" with the actual title of the application window, and "ProgressBar" with the actual name of the progress bar control.
- Use the TcxProgressBar object to validate the progress bar state. For example, to check the progress bar value:
If progressBar.Value = 50 Then
Or to check the progress bar status
If progressBar.Status = TcxProgressBarStatus.pbStatusIndeterminate Then
Some help reference articles :
TcxProgressBarProperties Object | TestComplete Documentation (smartbear.com)
TcxProgressBar Class | VCL | DevExpress Documentation
Hope this helps - Happy to help further!!
Thank you very much and have a great one!Warm regards
Related Content
- 14 years ago
- 9 years ago
Recent Discussions
- 2 days ago