Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Trouble with creating an FirefoxDriver object.

View previous topic View next topic Go down

Trouble with creating an FirefoxDriver object.

Post by Brigant on Tue Aug 23, 2011 11:13 pm

When I try to make a new FirefoxDriver object ( WebDriver driver = new FirefoxDriver(); ) I get this Message:


Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: Bad request

Build info: version: '2.4.0', revision: '13337', time: '2011-08-12 09:58:05'
System info: os.name: 'Windows XP', os.arch: 'amd64', os.version: '5.2', java.version: '1.6.0_21'
Driver info: driver.version: FirefoxDriver

Brigant

Posts : 2
Join date : 2011-08-23

Back to top Go down

Re: Trouble with creating an FirefoxDriver object.

Post by Adviser on Sat Aug 27, 2011 7:16 pm

hi,

use this

For Firefox : // Instantiate the Firefox browser with profile.
FirefoxProfile firefoxProfile = new FirefoxProfile();
WebDriver driver = new FirefoxDriver(firefoxProfile);


Best of luck

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: Trouble with creating an FirefoxDriver object.

Post by Brigant on Mon Aug 29, 2011 5:31 pm

Fixed the Problem with setting the localhost to 127.0.0.1 in C:\WINDOWS\system32\drivers\etc\hosts.

Brigant

Posts : 2
Join date : 2011-08-23

Back to top Go down

Changing the etc host file works

Post by satyamsing on Fri Nov 04, 2011 6:59 pm

Was getting error: "Exception in thread "main" org.openqa.selenium.UnsupportedCommandException: Bad request" While trying to setup webdriver.

Using the below code was not required to solve this problem:
FirefoxProfile firefoxProfile = new FirefoxProfile();

WebDriver driver = new FirefoxDriver(firefoxProfile);

Changing the host file at: "C:\WINDOWS\system32\drivers\etc\" solved the problem.


For More Details Visit: http://satyamsing.blogspot.com/


Last edited by satyamsing on Mon Jan 16, 2012 6:31 pm; edited 1 time in total (Reason for editing : Provided details of the issue and debugging)

satyamsing

Posts : 3
Join date : 2011-11-04

Back to top Go down

Re: Trouble with creating an FirefoxDriver object.

Post by Sponsored content Today at 5:48 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum