sync_webdriver 1.2.2+1

  • README.md
  • Installing
  • Versions
  • 1

Dart Sync WebDriver

Build Status

Synchronous WebDriver and PageLoader libraries.

Installing

This library depends on https://github.com/google/dart-sync-socket which uses a native extension. After doing a pub get or upgrade, you must build the native extension by running:

  # ./packages/sync_socket/../tool/build.sh

Projects that use Sync WebDriver should include the following in their pubspec.yaml:

sync_webdriver: '^1.2.0'

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  sync_webdriver: ^1.2.2+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:sync_webdriver/sync_webdriver.dart';
  
Version Uploaded Documentation Archive
1.2.2+1 May 1, 2015 Go to the documentation of sync_webdriver 1.2.2+1 Download sync_webdriver 1.2.2+1 archive
1.2.2 Apr 30, 2015 Go to the documentation of sync_webdriver 1.2.2 Download sync_webdriver 1.2.2 archive
1.1.4+1 Feb 25, 2015 Go to the documentation of sync_webdriver 1.1.4+1 Download sync_webdriver 1.1.4+1 archive
1.1.4 Feb 20, 2015 Go to the documentation of sync_webdriver 1.1.4 Download sync_webdriver 1.1.4 archive
2.0.0-pre.2 Jun 14, 2016 Go to the documentation of sync_webdriver 2.0.0-pre.2 Download sync_webdriver 2.0.0-pre.2 archive
2.0.0-pre.1 May 10, 2016 Go to the documentation of sync_webdriver 2.0.0-pre.1 Download sync_webdriver 2.0.0-pre.1 archive
2.0.0-pre.0 May 27, 2015 Go to the documentation of sync_webdriver 2.0.0-pre.0 Download sync_webdriver 2.0.0-pre.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
4
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
1
Learn more about scoring.

We analyzed this package on Jul 20, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.69.0
  • pana: 0.11.7

Platforms

Detected platforms: other

Primary library: package:sync_webdriver/sync_webdriver.dart with components: io, nativewrappers, mirrors.

Issues and suggestions

Fix lib/src/options.dart.

Analysis of lib/src/options.dart failed with 5 errors:

line 75 col 24: A value of type 'bool' can't be assigned to a variable of type 'String'.

line 78 col 24: A value of type 'int' can't be assigned to a variable of type 'String'.

line 102 col 12: The return type 'Duration' isn't a 'void', as defined by the method 'scriptTimeout'.

line 110 col 12: The return type 'Duration' isn't a 'void', as defined by the method 'implicitWaitTimeout'.

line 118 col 12: The return type 'Duration' isn't a 'void', as defined by the method 'pageLoadTimeout'.

Fix lib/src/window.dart.

Analysis of lib/src/window.dart failed with 2 errors:

line 23 col 9: super call must be last in an initializer list (see https://goo.gl/EY6hDP): 'super(driver, 'window/$handle')'.

line 44 col 3: Invalid override. The type of 'Window.==' ('(Window) → bool') isn't a subtype of 'Object.==' ('(dynamic) → bool').

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Maintain CHANGELOG.md.

Changelog entries help clients to follow the progress in your code.

Package is too old.

The package was released more than two years ago.

Fix additional 9 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/web_driver.dart (1 error, 18 hints)
  • lib/src/pageloader/annotations.dart (1 error)
  • lib/src/web_element.dart (1 error)
  • lib/src/touch.dart (1 error)
  • lib/src/capabilities.dart (1 hint)
  • lib/src/command_event.dart (Run dartfmt to format lib/src/command_event.dart.)
  • lib/src/common.dart (Run dartfmt to format lib/src/common.dart.)
  • lib/src/pageloader/core.dart (Run dartfmt to format lib/src/pageloader/core.dart.)
  • lib/src/util.dart (1 hint)

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use sync_webdriver.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.9.0 <2.0.0
crypto ^0.9.0 0.9.2+1 2.0.6
matcher ^0.12.0 0.12.4
stack_trace ^1.3.2 1.9.3
sync_socket ^1.0.2+1 1.0.2+1
Transitive dependencies
charcode 1.1.2
convert 1.1.1 2.0.2
typed_data 1.1.6
Dev dependencies
path ^1.3.5 1.6.2
test ^0.12.0