Unable To Init The Driver
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:
- 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.
- 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.
- [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.
- 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?
Mrunal GosarMrunal Gosar2 Answers
You have infinite recursion when calling Global's constructor. Your initialize()
is perfectly fine.
BrowserInitializer
is aGlobal
.
So Global
's contructor calls BrowserInitializer
's constructor (which calls super
's i.e Global
's constructor again)
Use something like:
rocketboyrocketboyI 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