AWS Windows EC2 run Selenium Webdriver in foreground

Need Help. Using cloud formation template, I created a windows ec2 instance which runs selenium agent with ie11. However, my power-shell script (triggered using cf template) runs the selenium grid stand alone jar in background. So when the Selenium Grid hub triggers a test, they are also run on ie in background. Issue is some of my tests capture screenshots and they are being returned as black screen.

When selenium grid is run in foreground, I get proper screenshots. How to resolve this issue without RDP into windows machine?

Source: Windows Questions

LEAVE A COMMENT