Ask a Question

picture captured in wrong place

NisHera
Valued Contributor

picture captured in wrong place

 

Im using lap_top to run tests and my main screen is separate monitor.
Running from main screen was ok using Log.picture(My window,'','')
But when I get pictures while running on second screen, it gets screen shot of wrong rectangular area
no windows overlapped
Any idias?

2 REPLIES 2
Marsha_R
Community Hero

Can you show us the actual Log.picture code?  I'm guessing there's an issue because the two monitors are not the same size.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
NisHera
Valued Contributor

Below is the code I'm using

 

 for(i=0;i<100;i++){
                  Delay(2600,'Just you waite.......!');
                             if (Aliases.MyApp.StndImportExecute.FindChild('ObjectIdentifier', 'btnExecute', 10,                                                                                                                                                          750).WndCaption=='Completed') {
                  break;
                                }}
if (Aliases.MyApp.ErrorDlg.WaitProperty('Exists',true,500) ) {
             Log.Picture(Aliases.MyApp.ErrorDlg, "this is the MSG", "Extended Message Text");
             Aliases.MyApp.ErrorDlg.OK.ClickButton();
             Delay(500);
             if (Sys.Process("notepad").Exists) {
                         //some more codes not relevant to this...............
            }          }

cancel
Showing results for 
Search instead for 
Did you mean: