SeleniumHelper class

Initiates a standalone Selenium server.

Once constructed, the start and stop methods can be used as before and after hooks for dart_dev tasks, respectively.

import 'package:dart_dev/dart_dev.dart';

main() async {
  var seleniumHelper = new SeleniumHelper();
  config.test
    ..before = [seleniumHelper.start]
    ..after = [seleniumHelper.stop];
}

Constructors

SeleniumHelper({String executablePath })
Constructs a Selenium helper instance that will install and run a standalone Selenium server. This tool works as follows: [...]

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

start() → Future<Null>
stop() → Future<Null>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

clearObservatoryPorts() → void
Clears all previously detected ports on which an observatory instance was running.
getActiveObservatoryPorts() → Future<List<int>>
Returns a Future that resolves with all of the ports on which active observatory instances are running.
killChildrenProcesses() → Future<bool>

Constants

seleniumServerExecutable → const String
The Selenium server executable name.
'selenium-server'