[英]Selenium scripts are getting failed in Remote machine due to Resolution of Remote machine
My Selenium scripts are running fine in my local machine. 我的Selenium脚本在本地计算机上运行良好。 But when I'm trying to execute the same from remote machine. 但是,当我尝试从远程计算机执行相同的操作时。
All the test cases are getting failed due to Resolution of Remote machine(Desktop). 由于远程计算机(台式机)的解析,所有测试用例都失败了。
Could some one suggest please, How to over-come from that problem. 有人可以提出建议,如何克服这个问题。
Working fine with below steps. 使用以下步骤可以正常工作。 driver.manage().window().setSize(new Dimension(1024,546)). driver.manage()。window()。setSize(new Dimension(1024,546))。
We need to add this step before launching Browser. 我们需要在启动浏览器之前添加此步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.