Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: assert selector is a string (#1795)
Pavel Feldmane9b470096d3b
diff --git a/src/selectors.ts b/src/selectors.tsindex 8f5bd946c1..74b8947afc 100644--- a/src/selectors.ts+++ b/src/selectors.ts@@ -17,7 +17,7 @@import * as dom from './dom';import * as frames from './frames';import * as selectorEvaluatorSource from './generated/selectorEvaluatorSource';-import { helper } from './helper';+import { helper, assert } from './helper';import SelectorEvaluator from './injected/selectorEvaluator';import * as js from './javascript';import * as types from './types';@@ -163,6 +163,7 @@ export class Selectors {}private _parseSelector(selector: string): types.ParsedSelector {+ assert(helper.isString(selector), `selector must be a string`);let index = 0;let quote: string | undefined;let start = 0;