Unable To Init The Driver

  1. Unable To Init The Drivers License
  2. Unable To Init The Drivers
Active5 years, 11 months ago
Unable to init the driversUnable

Hi i have a global class as belows:

I have another class called browser initializer where i want to initialize the driver instance to firefox as below:

  1. You are posting a reply to: 'Video driver failed to initialize' BSOD The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details.
  2. If you would rather not use either the Broderbund PDF Converter or Creator, or if you experience problems while trying to use the Broderbund PDF Converter or Creator, you can use any PDF printer driver which is installed on your computer.
  3. [Problem: Failed to init MIDI music driver] the game runs but theres no sound/music. I'm running windows vista but i don't usually have problems with the midi driver. And no, there's not any other programs that would be using the midi driver running while i run the game - so i know the driver is not in use when i run the game.
  4. I think you could try to add audio.Start() before you call the audio’s init function. In fact, you should call Start() function before any code with the driver.

1) Download and install Driver Easy. 2) Run Driver Easy and click Scan Now. Then Driver Easy will scan your computer and detect any problem drivers. 3) Click the Update button next to the driver name to download the correct driver (you can do that with the FREE version), then install it in your computer. Unable to init AGEIA PhysX (TM)! After days of grinding my teeth with the problem I downloaded the Driver an hour ago & I can play the game again.

I have testNG class where i want to run some test as belows :

Now i am getting error like :

but when i am initializing the driver instance in the constructor of the Global class i am able to run my test. what seems to be the problem? am i going wrong somewhere in the concepts of java?

InitMrunal GosarMrunal Gosar
3,0008 gold badges31 silver badges58 bronze badges

2 Answers

You have infinite recursion when calling Global's constructor. Your initialize() is perfectly fine.

BrowserInitializeris aGlobal.

So Global's contructor calls BrowserInitializer's constructor (which calls super's i.e Global's constructor again)

Use something like:

rocketboyrocketboy
8,2771 gold badge27 silver badges35 bronze badges

I woudl approach this in a different way, and use a @BeforeTes annotation;

Create a new webdriver class which extends Firefox driver;

Your test would then look like this;

I would be tempted to then further create a base test class;

In which case you test would then look like this;

Robbie WarehamRobbie Wareham

Unable To Init The Drivers License

3,2901 gold badge15 silver badges34 bronze badges

Unable To Init The Drivers

Not the answer you're looking for? Browse other questions tagged javaselenium-webdrivertestng or ask your own question.