@flood/chrome
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -200,2 +200,7 @@ // Type definitions for @flood/browser-test 0.1.0 | ||
public findAllElements(locator: string | Locator): Promise<ElementHandle[]> | ||
/** | ||
* Switch the focus of the browser to another frame or window | ||
*/ | ||
public switchTo(): TargetLocator | ||
} | ||
@@ -279,2 +284,29 @@ | ||
declare class TargetLocator { | ||
/** | ||
* Locates the DOM element on the current page that corresponds to | ||
* `document.activeElement` or `document.body` if the active element is not | ||
* available. | ||
*/ | ||
public activeElement(): Promise<ElementHandle> | ||
/** | ||
* Navigates to the topmost frame | ||
*/ | ||
public defaultContent(): Promise<void> | ||
/** | ||
* Changes the active target to another frame. | ||
* | ||
* Accepts either: | ||
* | ||
* number: Switch to frame by index in window.frames, | ||
* string: Switch to frame by frame.name or frame.id, whichever matches first, | ||
* ElementHandle: Switch to a frame using the supplied ElementHandle of a frame. | ||
* | ||
* @param id number | string | ElementHandle | ||
*/ | ||
public frame(id: number | string | ElementHandle) | ||
} | ||
declare class Condition {} | ||
@@ -281,0 +313,0 @@ declare class Locator {} |
{ | ||
"name": "@flood/chrome", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Flood Chrome provides an API for scripting Browser Level Load Tests", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31389
521