在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tebeka/selenium开源软件地址:https://github.com/tebeka/selenium开源编程语言:Go 99.1%开源软件介绍:The most complete, best-tested WebDriver client for GoAboutThis is a WebDriver client for Go. It supports the WebDriver protocol and has been tested with various versions of Selenium WebDriver, Firefox and Geckodriver, and Chrome and ChromeDriver,
InstallingRun
to fetch the package. The package requires a working WebDriver installation, which can include recent versions of a web browser being driven by Selenium WebDriver. Downloading DependenciesWe provide a means to download the ChromeDriver binary, the Firefox binary, the Selenium WebDriver JARs, and the Sauce Connect proxy binary. This is primarily intended for testing.
Re-run this periodically to get up-to-date versions of these binaries. DocumentationThe API documentation is at https://godoc.org/github.com/tebeka/selenium. See the example and unit tests(for sauce, selenium and service) for better usage information. Known IssuesAny issues are usually because the underlying browser automation framework has a bug or inconsistency. Where possible, we try to cover up these underlying problems in the client, but sometimes workarounds require higher-level intervention. Please feel free to file an issue if this client doesn't work as expected. Below are known issues that affect the usage of this API. There are likely others filed on the respective issue trackers. Selenium 2No longer supported. Selenium 3Geckodriver (Standalone)
ChromedriverBreaking ChangesThere are a number of upcoming changes that break backward compatibility in an effort to improve and adapt the existing API. They are listed here: 22 August 2017The 18 April 2017The Log method was changed to accept a typed constant for the type of log to retrieve, instead of a raw string. The return value was also changed to provide a more idiomatic type. HackingPatches are encouraged through GitHub pull requests. Please ensure that:
See the issue tracker for features that need implementing. Testing LocallyInstall
Run the tests:
Testing With DockerTo ensure hermeticity, we also have tests that run under Docker. You will need an installed and running Docker system. To run the tests under Docker, run:
This will create a new Docker container and run the tests in it. (Note: flags
supplied to this invocation are not curried through to the For debugging Docker directly, run the following commands:
Testing With Sauce LabsTests can be run using a browser located in the cloud via Sauce Labs. To run the tests under Sauce, run:
The Sauce access key can be obtained via the Sauce Labs user settings page. Test results can be viewed through the Sauce Labs Dashboard. LicenseThis project is licensed under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论