sync_webdriver 1.2.2+1

  • README.md
  • Installing
  • Versions
  • 26

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'

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

Analysis

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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
88 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
26
Learn more about scoring.

Platforms

Detected platforms: other

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

Suggestions

  • Maintain CHANGELOG.md.

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 11 errors 23 hints.

    Strong-mode analysis of lib/src/options.dart failed with the following error:

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

    Strong-mode analysis of lib/src/pageloader/annotations.dart failed with the following error:

    line: 157 col: 51
    The argument type 'List' can't be assigned to the parameter type 'Iterable<WebElement>'.

    Similar analysis of the following files failed:

    • lib/src/touch.dart (error)
    • lib/src/web_driver.dart (error)
    • lib/src/web_element.dart (error)
    • lib/src/window.dart (error)
    • lib/src/capabilities.dart (hint)
    • lib/src/command_event.dart (hint)
    • lib/src/common.dart (hint)
    • lib/src/pageloader/core.dart (hint)
    • lib/src/util.dart (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.2+1
matcher ^0.12.0 0.12.2
stack_trace ^1.3.2 1.9.2
sync_socket ^1.0.2+1 1.0.2+1
Transitive dependencies
charcode 1.1.1
convert 1.1.1 2.0.1
typed_data 1.1.5
Dev dependencies
path ^1.3.5 1.5.1
test ^0.12.0