Reputation: 55
I deployed the selenium grid and ran tests on it. My tests failed but if I run them locally they completed successfully. How can see an image during running tests on the selenium grid node?
Upvotes: 0
Views: 963
Reputation: 838
In VMs, Screen size will be small, please run your test with (1040, 740) VM screensize in your local. i hope you can identify your issue locally.
ChromeOptions options = new ChromeOptions();
options.addArguments("--no-sandbox");
options.addArguments("--disable-gpu");
options.addArguments("--window-size=1040,784"); // vm size : --window-size=1040,784
driver = new ChromeDriver(options);
Upvotes: 0
Reputation: 8676
If you are using official Selenium docker images in your grid, you can connect to your node with any VNC viewer using port 5900
(if not changed in configuration) and password secret
.
You can also try to set up video recording of your scenario. But the former approach is simpler.
Upvotes: 3