开发者

ChromeDriver throws JVM Bind Exception

开发者 https://www.devze.com 2023-02-20 20:47 出处:网络
im encoutaring some wierd behaviuor with the ChromeDriver on Selenium开发者_运维技巧 2.0. i have a test suite that consists of about 20 tests.

im encoutaring some wierd behaviuor with the ChromeDriver on Selenium开发者_运维技巧 2.0.

i have a test suite that consists of about 20 tests. when i run the test individualy, they all work fine. both on firefox and chrome.

though when i run the entire suite on chrome i get a JVM Bind Exception telling me the address is already in use. the thing is that the first 2-3 tests pass, and it only happens after them. maybe OS is having trouble recycling processes?

the suite works perfectly on firefox...

any ideas?

i use window xp 32bit OS.

thanks


try calling "webDriver.quit()" method after the end of each test. Selenium 2 is known to have this bug of exhausting the ephemeral ports, and the above piece of code should get some relief. I tried it, and it does close some ports.

Thanks, Prakash.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号