Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Parallel processing 在同一台计算机上同时运行2个webdriver实例_Parallel Processing_Selenium Webdriver - Fatal编程技术网

Parallel processing 在同一台计算机上同时运行2个webdriver实例

Parallel processing 在同一台计算机上同时运行2个webdriver实例,parallel-processing,selenium-webdriver,Parallel Processing,Selenium Webdriver,是这样的 我有两个不同的过程。一个启动ChromeDriver,另一个启动IEDriver。当进程开始工作时,就好像先前启动的进程跳入到后来启动的浏览器中,Chrome进程的操作在IE浏览器中完成,而IE进程则与浏览器断开连接。然后第一个错误也会出现,比如StaleElementException。不同的错误,但其他组合也会失败,包括Firefox 网络驱动程序是否在后台共享一些资源(端口、套接字、windowhandle、配置文件) 如何完成并行独立运行?使用同一webdriver的两个实例怎

是这样的

我有两个不同的过程。一个启动ChromeDriver,另一个启动IEDriver。当进程开始工作时,就好像先前启动的进程跳入到后来启动的浏览器中,Chrome进程的操作在IE浏览器中完成,而IE进程则与浏览器断开连接。然后第一个错误也会出现,比如StaleElementException。不同的错误,但其他组合也会失败,包括Firefox

网络驱动程序是否在后台共享一些资源(端口、套接字、windowhandle、配置文件)

如何完成并行独立运行?使用同一webdriver的两个实例怎么样


(在C#with MsTest中运行所有这些)

我正在使用量角器,我可以在配置文件中使用此配置运行许多webDriver实例

exports.config = {
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: [],
    multiCapabilities: [{
        'browserName': 'chrome',
        'specs': ['protractor-spec.js'],
        'count': 5, //number of instances
        'shardTestFiles': true, //execute instances of browser simultaneously
    },
count是要启动的实例数