blob: 6c24d2e3f80a4881babdf791348b7d20a58fe54f [file] [log] [blame]
part of webdriver;
class Navigation extends _WebDriverBase {
Navigation._(driver) : super(driver, '');
/// Navigate forwards in the browser history, if possible.
Future forward() async {
await _post('forward');
}
/// Navigate backwards in the browser history, if possible.
Future back() async {
await _post('back');
}
/// Refresh the current page.
Future refresh() async {
await _post('refresh');
}
@override
String toString() => '$driver.navigate';
@override
int get hashCode => driver.hashCode;
@override
bool operator ==(other) => other is Navigation && other.driver == driver;
}