Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

webDriver opens opera:debug instead URL (RemoteWebDriver) #3092

Closed
lukeis opened this issue Mar 3, 2016 · 9 comments
Closed

webDriver opens opera:debug instead URL (RemoteWebDriver) #3092

lukeis opened this issue Mar 3, 2016 · 9 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3092

I run tests on virtual machine with Windows 7. All browsers work fine, but when I run
my tests in Opera, there is opens opera:debug page instead requested URL. Selenium
wait, wait, wait and after test fall.

Selenium version: 2.15.0
OS: Windows 7
Browser: Opera
Brower version: 11.60

There is full stacktrace:
FAILED CONFIGURATION: @BeforeMethod startWebDriver
org.openqa.selenium.WebDriverException: No response in a timely fashion
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:25'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.7.0_01'
Driver info: driver.version: OperaDriver
Command duration or timeout: 36.82 seconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:25'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-36-generic', java.version:
'1.6.0_20'
Driver info: driver.version: RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:424)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:123)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:78)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
    at enter_test.main_class.startWebDriver(main_class.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:631)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:758)
    at org.testng.TestRunner.run(TestRunner.java:613)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1142)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1067)
    at org.testng.TestNG.run(TestNG.java:979)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)
Caused by: com.opera.core.systems.scope.exceptions.ResponseNotReceivedException: No
response in a timely fashion
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:25'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version:
'1.7.0_01'
Driver info: driver.version: OperaDriver
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:25'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-36-generic', java.version:
'1.6.0_20'
Driver info: driver.version: OperaDriver
    at com.opera.core.systems.WaitState.pollResultItem(WaitState.java:436)
    at com.opera.core.systems.WaitState.waitAndParseResult(WaitState.java:465)
    at com.opera.core.systems.WaitState.waitForHandshake(WaitState.java:666)
    at com.opera.core.systems.ScopeServices.waitForHandshake(ScopeServices.java:317)
    at com.opera.core.systems.ScopeServices.init(ScopeServices.java:209)
    at com.opera.core.systems.OperaDriver.init(OperaDriver.java:370)
    at com.opera.core.systems.OperaDriver.start(OperaDriver.java:347)
    at com.opera.core.systems.OperaDriver.<init>(OperaDriver.java:303)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:63)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:57)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:177)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

FAILED CONFIGURATION: @AfterMethod stopWebDriver
java.lang.NullPointerException
    at enter_test.main_class.stopWebDriver(main_class.java:50)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:772)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:758)
    at org.testng.TestRunner.run(TestRunner.java:613)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1142)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1067)
    at org.testng.TestNG.run(TestNG.java:979)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)

Reported by rubtsova.evgeniya on 2011-12-20 07:29:32

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by ajaykemparaj on 2011-12-21 17:27:22

  • Labels added: Component-WebDriver, Browser-Opera

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Andreas, would you rather Opera issues be logged in your github project or here?

Reported by luke.semerau on 2011-12-28 20:20:02

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by andreas.tolf.tolfsen on 2011-12-28 20:23:50

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

What is with this issue? Now I use Selenium 2.16.1 and it also opens opera:debug page.
Maybe I should set some opera settings?

Reported by rubtsova.evgeniya on 2012-01-13 06:09:36

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

What do you mean by “requested URL”?  Can you provide a reproducible test case?

Reported by andreas.tolf.tolfsen on 2012-04-19 16:31:44

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

“requested URL” its mean URL to which I want to go. For example "google.com". But when
I run test in opera (with remote webdriver), I get only "opera: debug" page and it
waits waits and waits... there is no "google.com".

There is small test for example:

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

public class StartGoogle {

        public WebDriver driver;
        public DesiredCapabilities desiredCapabilities;

        @BeforeMethod
        public void startDriver(){
                desiredCapabilities = DesiredCapabilities.opera();
                driver = new RemoteWebDriver(new URL("http://10.65.66.16:4444/wd/hub/"),
desiredCapabilities);
                driver.navigate().to("http://google.com");
        }

        @Test
        public void SearchTest() throws InterruptedException{
                driver.findElement(By.id("gbqfq")).sendKeys("selenium");
                Thread.sleep(2000);
                Assert.assertTrue(driver.findElement(By.xpath("//a[contains(text(),
'selenium')]")).isDisplayed());
        }

        @AfterMethod
        public void CloseDriver(){
                driver.close();
        }
    }

Reported by rubtsova.evgeniya on 2012-04-20 06:26:41

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I'm not able to reproduce this, neither when using a local driver or a remote driver
(Selenium 2.21.0)
with the following modified TC:

  <URI:https://gist.github.com/2723990>

I also tried restarting the remote server and deleting ~/.launcher (which OperaDriver
uses and
populates.)

Reported by andreas.tolf.tolfsen on 2012-05-18 08:34:21

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Closing as non-actionable. Also, Opera is moving to Blink and the current OperaDriver
implementation is discontinued.

Reported by barancev on 2013-05-16 19:04:52

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:30

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant