I am trying to set-up a test environment for a PHP web application on a windows 7 system. I’m using the NetBeans IDE with the Selenium PHP plugin and PHPUnit installed on a local web server (XAMPP). I have everything set-up, except that the Selenium server that’s bundled with NetBeans gives the error:
Failed to start new browser session: Error while launching browser.
Every time I try to run a test.
Now, I’m pretty sure this is a UAC issue, as I was able to make the tests run by stopping NetBeans’ Selenium server and starting one from an administrator command prompt. What I’d like to know is if there’s any way of making the NetBeans plugin work, preferably without disabling UAC.
addendum: I’ve also tried running NetBeans as Administrator, and setting it to always run as Administrator in the properties, neither of these worked.
I realise that asking this when I already have a workable solution seems a bit perfectionist/OCD, but we probably wouldn’t be on SuperUser if we weren’t a bit perfectionist/OCD anyway. No?
Oh yes, and if it’s not possible than I’d appreciate being told why it is not possible… I understand Unix-style permissions but this whole UAC thing is still a mystery to me.
It’s a separate process you are launching, so it triggers the UAC prompt. Without knowing more details of your setup, this would be impossible to diagnose.
Instead of disabling UAC, you can use Microsoft’s Application Compatibility Kit to disable UAC for your plugin. . .