Ask a Question

Some MSAA controls cannot be recognized on Chrome when windows is maximized

xuanphuoc2411
Occasional Contributor

Some MSAA controls cannot be recognized on Chrome when windows is maximized

Hi all,

 

We are using MSAA to capture Reload button of Chrome windows. However, on TestComplete 12.42.3048.7 x64, this button cannot be recognized when the state of Chrome window is maximized. How can help us determine this? Thanks.

 

Chrome version: 63.0.3239.108

 

1.PNGReload button can be recognized properly when Chrome window is not maximizedReload button can be recognized properly when Chrome window is not maximizedReload button cannot be recognized when Chrome window is maximizedReload button cannot be recognized when Chrome window is maximized

 

5 REPLIES 5
tristaanogre
Community Hero

Re: Some MSAA controls cannot be recognized on Chrome when windows is maximized

Question: Why are you testing the reload button of the browser? Is this part of testing your application? If you simply need to reload a page, you can send the refresh command to the page to refresh the page without having to interact with the browser UI.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
xuanphuoc2411
Occasional Contributor

Re: Some MSAA controls cannot be recognized on Chrome when windows is maximized

Certainly, we don't test the reload button of the browser. Our AUT load data without any signal on GUI so we need to use the Reload button of Chrome to determine whenever page loaded completely before moving on next steps.

tristaanogre
Community Hero

Re: Some MSAA controls cannot be recognized on Chrome when windows is maximized

There's a method for that..

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/page/wait-action-page...

 

Does that Wait method not work for you?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
xuanphuoc2411
Occasional Contributor

Re: Some MSAA controls cannot be recognized on Chrome when windows is maximized

Yes, currently, we are using "Wait" action as a workaround solution. However, sometimes, it still moves on next action although page is still loading. 

tristaanogre
Community Hero

Re: Some MSAA controls cannot be recognized on Chrome when windows is maximized

The "Wait" action has a parameter in milliseconds.  By default, it uses what is in Tools | Current Project Properties | Playback | Auto-wait timeout.  Just as an experiment, what happens when you set that parameter to something like 120000 (2 minutes)? It won't wait 2 minutes, but it will wait UP TO that before going on.  So, if it's taking time for the page to load, it could be that you need to boost that value.

 

There are other things we can try, but let's make sure that a simple timing correction doesn't fix it.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: