hemant-manwani / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

Using a proxy causes a InvocationTargetException #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to use a proxy via webdriver as per the following

$cap = array('proxy' => '50.***.249.***:3128');
$webdriver->connect("firefox", "", $cap);

yields this in Selenium Server 

13:25:56.702 INFO - Executing: [new session: {javascriptEnabled=true, 
browserName=firefox, nativeEvents=false, proxy=*****:3128, version=}] at URL: 
/session)
13:25:56.745 WARN - Exception thrown
java.util.concurrent.ExecutionException: 
org.openqa.selenium.WebDriverException: 
java.lang.reflect.InvocationTargetException
Build info: version: '2.16.0', revision: '15381', time: '2012-01-04 18:45:20'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-317-ec2', 
java.version: '1.6.0_26'

Is that the correct way to issue a proxy request via the 
"php-webdriver-bindings" library?

Original issue reported on code.google.com by krytie2...@gmail.com on 13 Jan 2012 at 3:28

GoogleCodeExporter commented 8 years ago
Nevermind. I worked out my issue by reading

http://stackoverflow.com/questions/7328494/selenium2-firefox-use-the-default-pro
file

Original comment by krytie2...@gmail.com on 13 Jan 2012 at 5:23