Forum Discussion
Kitt
3 years agoRegular Contributor
For MS hosted-agents, you could try adding a task in your automation pipeline to set the screen resolution using a screen resolution utility:
Example for Azure DevOps pipelines (install screen resolution utility from marketplace):
steps:
- task: ms-autotest.screen-resolution-utility-task.screen-resolution-utlity-task.ScreenResolutionUtility@1
displayName: 'Set Screen Resolution'
inputs:
displaySettings: specific
width: 3440
height: 1440
enabled: true
Similarly for Jenkins using a plugin called xvfb (see here) and (here).
wrap([$class: 'Xvfb']) {
Screen = '3440x1440x24'
// execute test complete tests
}
OR within TestComplete, maximizing the browser window after you launch:
Browsers.Item(btChrome).Run("your URL", 2500);
Sys.Browser().BrowserWindow(0).Maximize();
I would also suggest a solution found in another forum of changing your browser's startup arguments [here].
Related Content
- 4 years ago
- 13 years ago
Recent Discussions
- 9 hours ago
- 4 days ago