Forum Discussion
I was hoping, if possible, to see something like this -
Showing the Object Browser, Properties and the UI Control in question.Are you able to find out, what the exact control name is being used in your AUT, or is it a custom control?
What methods are shown for item "TestComplete Work Area 1"?
You are using the Click method, are you passing in any parameters?
Can you enable Advanced View.
I am posting the screenshot of the Object Browser, Properties and the UI:
Here are the methods available for this object:
While clicking the object, I am not passing any parameters.
- hina4 months agoContributor
Hi rraghvani,
I have tried all the workarounds suggested by you and by everyone else, unfortunately nothing is working. I would talk to the developer (he is away right now), lets see what he has to say.
Thank you so much for all the help everyone!!
- rraghvani4 months ago
Champion Level 3
Could you try the following test, create a new function, copy and paste the FullName
and then only perform either Click() OR Click(-1, -1) to see how the control behaves -
void test() { // Past FullName var btn = Sys["Process"]("AXISEL")["WinFormsObject"]...("TV")["OutlineItem"]("TestComplete Work Area 1 Collapsed") btn.Click() // OR btn.Click(-1, -1) }Also, the item shown in the Object Browser is shown as "TestComplete Work Area 1 Collapsed" whereas the UI shows "TestComplete Work Area 1" without the word "Collapsed"? Could you also try using a wildcard e.g.
// Use wild card ...("TV")["OutlineItem"]("TestComplete Work Area 1*")And then run test() again.
Also, try to enable the various Playback settings, and run the test() to see if it makes any difference.
Finally, if the UI control is a custom control, then you need to speak with the developers and find out how to go about interacting with the control. - rraghvani4 months ago
Champion Level 3
I'm trying to diagnose the issue first, as opposed to providing a workaround! I believe your control is most likely a custom control, as the screenshots you have provided don't tie up, with what is shown in TC, which is typical of a custom control.
As I suggested, it's best to speak with the developers and find out how to go about interacting with the control 👍🏻