no main manifest attribute, Quality Analyst, Selenium, Selenium Errors, Selenium grid, Test Cases, Test Steps, Testing, Usability Tests, Web Automation, Web Testing

Resolution of some major Errors/Exception which users face while working with Selenium Grid.

1. failed configuration: @beforemethod setup org.openqa.selenium.webdriverexception: error forwarding the new session empty pool of vm for setup capabilities.

Resolution : https://khyatisehgal.wordpress.com/2014/08/27/failed-configuration-beforemethod-setup-org-openqa-selenium-webdriverexception-error-forwarding-the-new-session-empty-pool-of-vm-for-setup-capabilities/

2. listening on port 32052:exception in thread “main” org.openqa.selenium.remote.sessionnotfoundexception: unexpected error launching internet explorer.protected mode settings are not the same for all zone.

Resolution: https://khyatisehgal.wordpress.com/2014/08/26/listening-on-port-32052exception-in-thread-main-org-openqa-selenium-remote-sessionnotfoundexception-unexpected-error-launching-internet-explorer/

3. Exception in thread “main” org.Openqa.Selenium.Webdriverexception: error forwarding the new session empty pool of vm for setup capabilities [{browsername=safari}]

Resolution: https://khyatisehgal.wordpress.com/2014/08/26/exception-in-thread-main-org-openqa-selenium-webdriverexception-error-forwarding-the-new-session-empty-pool-of-vm-for-setup-capabilities-browsernamesafari/

4. java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1

Resolution: https://khyatisehgal.wordpress.com/2014/08/24/java-lang-unsupportedclassversionerror-unsupported-major-minor-version-51-0-at/

5. Selenium grid:org.Openqa.Selenium.Remote.Unreachablebrowserexception: could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Resolution: https://khyatisehgal.wordpress.com/2014/08/24/selenium-gridorg-openqa-selenium-remote-unreachablebrowserexception-could-not-start-a-new-session-possible-causes-are-invalid-address-of-the-remote-server-or-browser-start-up-failure/

6. NO MAIN MANIFEST ATTRIBUTE, in selenium-java-2.42.0.jar

Resolution : https://khyatisehgal.wordpress.com/2014/08/20/no-main-manifest-attribute-in-selenium-java-2-42-0-jar/

7. Selenium grid : forbidden for proxy , http error: 403

Resolution: https://khyatisehgal.wordpress.com/2014/08/20/selenium-grid-forbidden-for-proxy-http-error-403/

Advertisements

2 thoughts on “Resolution of some major Errors/Exception which users face while working with Selenium Grid.”

  1. Hey Khyati,

    I was trying to setup Grid on my local desktop (both hub and node).. I see no issue with the grid and node configuration but when I try to load browser through script:

    org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities [{platform=VISTA, browserName=firefox, version=26.0}]
    Command duration or timeout: 441 milliseconds
    Build info: version: ‘2.46.0’, revision: ’87c69e2′, time: ‘2015-06-04 16:16:47’
    System info: host: ‘DEMO-IN’, ip: ‘10.10.10.10’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.7.0_79’
    Driver info: org.openqa.selenium.remote.RemoteWebDriver

    Like

    1. Grid Output:

      Jul 30, 2015 12:56:40 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isAlive
      WARNING: Failed to check status of node: Connection refused: connect
      Jul 30, 2015 12:56:46 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isAlive
      WARNING: Failed to check status of node: Connection refused: connect
      Jul 30, 2015 12:56:53 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isAlive
      WARNING: Failed to check status of node: Connection refused: connect
      Jul 30, 2015 12:56:59 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isAlive
      WARNING: Failed to check status of node: Connection refused: connect
      Jul 30, 2015 12:57:05 PM org.openqa.grid.selenium.proxy.DefaultRemoteProxy isAlive
      WARNING: Failed to check status of node: Connection refused: connect
      Jul 30, 2015 12:57:06 PM org.openqa.grid.internal.Registry removeIfPresent
      WARNING: Proxy ‘host :http://10.176.169.11:5555‘ was previously registered. Cleaning up any stale test sessions.
      Jul 30, 2015 12:57:57 PM org.openqa.grid.web.servlet.handler.RequestHandler process
      INFO: Got a request to create a new session: Capabilities [{platform=VISTA, browserName=firefox, version=26}]

      role – webdriver output:

      C:\>java -jar selenium-server-standalone-2.40.0.jar -role webdriver -hub http://
      10.120.26.124:4444/grid/register
      Jul 30, 2015 12:57:05 PM org.openqa.grid.selenium.GridLauncher main
      INFO: Launching a selenium grid node
      12:57:06.516 INFO – Java: Oracle Corporation 24.79-b02
      12:57:06.517 INFO – OS: Windows 7 6.1 amd64
      12:57:06.522 INFO – v2.40.0, with Core v2.40.0. Built from revision fbe29a9
      12:57:06.609 INFO – RemoteWebDriver instances should connect to: http://127.0.0.
      1:5555/wd/hub
      12:57:06.610 INFO – Version Jetty/5.1.x
      12:57:06.611 INFO – Started HttpContext[/selenium-server/driver,/selenium-server
      /driver]
      12:57:06.611 INFO – Started HttpContext[/selenium-server,/selenium-server]
      12:57:06.612 INFO – Started HttpContext[/,/]
      12:57:06.613 INFO – Started org.openqa.jetty.jetty.servlet.ServletHandler@73289d
      f1
      12:57:06.613 INFO – Started HttpContext[/wd,/wd]
      12:57:06.615 INFO – Started SocketListener on 0.0.0.0:5555
      12:57:06.616 INFO – Started org.openqa.jetty.jetty.Server@62f03cb9
      12:57:06.616 INFO – using the json request : {“class”:”org.openqa.grid.common.Re
      gistrationRequest”,”capabilities”:[{“platform”:”VISTA”,”seleniumProtocol”:”WebDr
      iver”,”browserName”:”firefox”,”maxInstances”:5},{“platform”:”VISTA”,”seleniumPro
      tocol”:”WebDriver”,”browserName”:”chrome”,”maxInstances”:5},{“platform”:”WINDOWS
      “,”seleniumProtocol”:”WebDriver”,”browserName”:”internet explorer”,”maxInstances
      “:1}],”configuration”:{“port”:5555,”register”:true,”host”:”10.176.169.11″,”proxy
      “:”org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,”maxSession”:5,”role”:”web
      driver”,”hubHost”:”10.120.26.124″,”registerCycle”:5000,”hub”:”http://10.120.26.1
      24:4444/grid/register”,”hubPort”:4444,”url”:”http://10.176.169.11:5555″,”remoteH
      ost”:”http://10.176.169.11:5555″}}
      12:57:06.624 INFO – Starting auto register thread. Will try to register every 50
      00 ms.
      12:57:06.625 INFO – Registering the node to hub :http://10.x.x.x:4444/grid/
      register

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s