commit | e9d39029faf55d93a7e62c30ea9a244e48e0b132 | [log] [tgz] |
---|---|---|
author | John Chen <johnchen@chromium.org> | Tue Sep 25 17:36:23 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Sep 25 17:36:23 2018 |
tree | 41fa9c3bcc998ac885d6945959dcbc9d79dd84e7 | |
parent | 6efd6eb84601cef66b85eb37cb8b4af0c38f9862 [diff] |
[ChromeDriver] Expand Capabilities for W3C compliance This CL is one step in making InitSession command W3C compliant. It expands Capabilities object to include all capabilities that are specified in the W3C spec. Changes include: * Re-ordered fields in Capabilities into W3C section and ChromeDriver specific section. Entries in W3C section are listed in the same order as they appear in W3C spec. * Added browserName, browserVersion, and platformName capabilities. They will be needed for proper firstMatches handling. * Added fields needed for timeouts capability. Parsing and using of these fields will be added in an upcoming CL. * Replaced legacy name unexpected_alert_behaviour with W3C-compliant name unhandled_prompt_behavior. * Modified Capabilities::Parse to accept all capability values, including those not yet supported by ChromeDriver. Added another method Capabilities::IsSupported to check for unsupported options. This is needed for upcoming W3C-compliant capability validation. Bug: chromedriver:1997 Change-Id: I5f53341cf47f77a1853f40028b1efe6f0b69c611 Reviewed-on: https://chromium-review.googlesource.com/1241213 Commit-Queue: John Chen <johnchen@chromium.org> Reviewed-by: Caleb Rouleau <crouleau@chromium.org> Cr-Commit-Position: refs/heads/master@{#593989}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .