PageStateMatcher class
Matches the state of a web page by various criteria.
class PageStateMatcher extends ChromeObject { PageStateMatcher({UrlFilter pageUrl, List<String> css}) { if (pageUrl != null) this.pageUrl = pageUrl; if (css != null) this.css = css; } PageStateMatcher.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * Matches if the condition of the UrlFilter are fulfilled for the top-level * URL of the page. */ UrlFilter get pageUrl => _createUrlFilter(jsProxy['pageUrl']); set pageUrl(UrlFilter value) => jsProxy['pageUrl'] = jsify(value); /** * Matches if all of the CSS selectors in the array match displayed elements * in a frame with the same origin as the page's main frame. All selectors in * this array must be [compound * selectors](http://www.w3.org/TR/selectors4/#compound) to speed up matching. * Note that listing hundreds of CSS selectors or CSS selectors that match * hundreds of times per page can still slow down web sites. */ List<String> get css => listify(jsProxy['css']); set css(List<String> value) => jsProxy['css'] = jsify(value); }
Extends
ChromeObject > PageStateMatcher
Constructors
new PageStateMatcher({UrlFilter pageUrl, List<String> css}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
PageStateMatcher({UrlFilter pageUrl, List<String> css}) { if (pageUrl != null) this.pageUrl = pageUrl; if (css != null) this.css = css; }
new PageStateMatcher.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
PageStateMatcher.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
List<String> css #
Matches if all of the CSS selectors in the array match displayed elements in a frame with the same origin as the page's main frame. All selectors in this array must be compound selectors to speed up matching. Note that listing hundreds of CSS selectors or CSS selectors that match hundreds of times per page can still slow down web sites.
List<String> get css => listify(jsProxy['css']);
set css(List<String> value) => jsProxy['css'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();