# Resource conflict when start a new browser-watirweb driver

**URL:** <https://www.ruby-forum.com/t/resource-conflict-when-start-a-new-browser-watirweb-driver/223528>\
**Category:** Ruby\
**Created:** [October 8, 2012, 6:37pm UTC](https://www.ruby-forum.com/t/resource-conflict-when-start-a-new-browser-watirweb-driver/223528 "2012-10-08T18:37:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 8, 2012, 6:37pm UTC](https://www.ruby-forum.com/t/resource-conflict-when-start-a-new-browser-watirweb-driver/223528/1 "2012-10-08T18:37:01Z")

</div>

I have created 6 threads and now each thread will create browser and  
then each of them will test my website.

The problem I am facing that, threads gets stuck just before or in the  
instruction:  
@browser=Watir::Browser.new

Any such experiences?

Is there anything like resource conflict for this particular  
instruction.

Interestingly, sometimes this problem hapens… and somethimes it doesnt,  
may be those codes are diffrent, I change codes but dont remember  
exactly I have changed code or just it depends on the OS for the  
resource allocation.

Kindly tell me if any way to find out if there is any resource conflict  
problem?

---

<div class="post-metadata">

**Author:** ![proggrammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@proggrammer](https://www.ruby-forum.com/u/proggrammer)\
**Post date:** [October 8, 2012, 8:41pm UTC](https://www.ruby-forum.com/t/resource-conflict-when-start-a-new-browser-watirweb-driver/223528/2 "2012-10-08T20:41:32Z")

</div>

It would help if you could provide a bit more of the surrounding code,  
and explain exactly what you mean by “stuck”.  
If you’re using a specific profile for the browser then there would be a  
conflict, but that command itself looks ok, unless each thread is  
overwriting the previous instance variable. Are your instances of  
@browser separated by multiple instances of a class?
