Issue
I am working with c# selenium. I am getting error with chrome driver as :
System.InvalidOperationException : disconnected: unable to connect to renderer
(Session info: chrome=62.0.3202.94)
(Driver info: chromedriver=2.32.498550
(9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),platform=Windows NT 10.0.15063 x86_64) (102)
Now I tried updating the chrome browser version to 2.33 and its working fine on my local machine. But I am getting this error my server where I am executing this tests on schedule basis.
I am using TFS to deploy tests on the server and to run the tests.
the same project is working on my local machine but I am getting this error on server for the
driver.Manage().Window.Maximize();
line for all the tests.
I check out same project from TFS on my colleagues machine and tried executing there its was working fine.
I tried updating driver to 2.33 even tried downgrading the driver to 2.32 and executed multiple time but its not working.
I am using MS build to build the automation project and deploy it on server as well.
Solution
Since it works well on your local machine,but got error when you run the tests on the server.
First make sure your server environment are the same with your local machine such as chrome browser version is 2.33 and the driver is also 2.33.
According to this code driver.Manage().Window.Maximize();
line.
Please make sure that you give enough time for the window to load before you declare this statement.
If you are finding any element to input some data then provide reasonable delay between this and the input statement.
Answered By - PatrickLu-MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.