How to control Chrome window position and size


#1

This way the size and position are applied before the browser is launched

<robotics-flow>
			<robot driver="chrome">
				<capability name="chromeOptions">
					<script return="chromeArgs">
						<![CDATA[
						import org.openqa.selenium.chrome.ChromeOptions;
						
						ChromeOptions options = new ChromeOptions();
						options.addArguments("--window-size=600,600");
						options.addArguments("--window-position=300,300");
						chromeArgs = options;
					]]></script>
				</capability>
				<script><![CDATA[
					...
				]]></script>
			</robot>
</robotics-flow>