Selenium use issue record (1)

Source: Internet
Author: User

1, run the Times wrong, prompt

Exception in thread "main" Java.lang.NoSuchFieldError:INSTANCE
At Org.apache.http.conn.ssl.sslconnectionsocketfactory.<clinit> (sslconnectionsocketfactory.java:144)
At Org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager (httpclientfactory.java:71)
At Org.openqa.selenium.remote.internal.httpclientfactory.<init> (httpclientfactory.java:57)
At Org.openqa.selenium.remote.internal.httpclientfactory.<init> (httpclientfactory.java:60)
At Org.openqa.selenium.remote.internal.apachehttpclient$factory.getdefaulthttpclientfactory ( apachehttpclient.java:251)
At Org.openqa.selenium.remote.internal.apachehttpclient$factory.<init> (apachehttpclient.java:228)
At Org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory (httpcommandexecutor.java:89)
At Org.openqa.selenium.remote.httpcommandexecutor.<init> (httpcommandexecutor.java:63)
At Org.openqa.selenium.remote.httpcommandexecutor.<init> (httpcommandexecutor.java:58)
At Org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start (Newprofileextensionconnection.java : 95)
At Org.openqa.selenium.firefox.FirefoxDriver.startClient (firefoxdriver.java:275)
At Org.openqa.selenium.remote.remotewebdriver.<init> (remotewebdriver.java:116)
At Org.openqa.selenium.firefox.firefoxdriver.<init> (firefoxdriver.java:222)
At Org.openqa.selenium.firefox.firefoxdriver.<init> (firefoxdriver.java:215)
At Org.openqa.selenium.firefox.firefoxdriver.<init> (firefoxdriver.java:211)
At Org.openqa.selenium.firefox.firefoxdriver.<init> (firefoxdriver.java:124)
At Com.selenium.homepage.HomePage.openBrowse (homepage.java:44)
At Com.selenium.homepage.HomePage.login1 (homepage.java:58)
At Com.selenium.homepage.HomePage.main (homepage.java:29)

Cause: Typically due to an imported jar package duplication

Workaround: Remove the duplicate jar package from the build path

2, run the Times wrong, prompt

Org.openqa.selenium.firefox.NotConnectedException:Unable to connect to host 127.0.0.1 in Port 7055 after 45000 Ms. Firefo X Console output:*** Log addons.manager:Application has been upgraded*** log addons.xpi:startup*** log Addons.xpi:Skipp ing unavailable install location app-system-local*** LOG addons.xpi:Skipping unavailable Install location App-system-sha re*** LOG addons.xpi:Ignoring File entry whose name is not a valid add-on Id:c:\users\salma.n\appdata\local\temp\anonymo us38301webdriver-profile\extensions\webdriver-staging*** Log addons.xpi:checkforchanges*** Log addons.xpi-utils: Opening XPI Database c:\users\salma.n\appdata\local\temp\anonymous38301webdriver-profile\extensions.json*** LOG Addons.xpi:New add-on [email protected] installed in app-profile*** blocklist::_loadblocklistfromfile:blocklist is Disa bled*** LOG addons.xpi-utils:make addon app-profile:[email protected] Visible

Cause: Selenium and Firefox version compatibility issues
Workaround: Upgrade selenium or lower the Firefox version

3. Start the Firefox popup Import Wizard

Reason: Unknown
Workaround:
Will
Firefox's profiles.ini files are modified isrelative=1->isrelative=0
File location
c:\users\{User name}\appdata\roaming\mozilla\firefox\profiles.ini

Selenium use issue record (1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.