Selenium add source code, solve open source does not display the problem

Source: Internet
Author: User
Question 1:

I have imported the source package, single click Get in the source code, want to view the source code

Webdriver   driver=new  firefoxdriver ();
Driver.get ("http://www.baidu.com/");

Cannot display the source code, displays the following question:

The problem is because we did not import the source package "Selenium-java-2.48.2-srcs.jar", but many people wonder, I have not already imported the source package, such as

But actually, there's an operation to be done.

Resolution 1:

Click Build path to select the path, which option of the Guide package. 2 Select Source package, select source attachment in the source package, select the imported package at the time

Resolution 2,:

When clicking on the source code, the case of error, you can directly, click on the change attached source, directly in the import source address

Selenium add source code, solve open source does not display the problem

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.