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
docs(python): expand assertion List types (#18975)
Max Schmitt30debb511065
diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.mdindex dbc3781782..07f1b8ed52 100644--- a/docs/src/api/class-locatorassertions.md+++ b/docs/src/api/class-locatorassertions.md@@ -202,7 +202,7 @@ The opposite of [`method: LocatorAssertions.toContainText`].### param: LocatorAssertions.NotToContainText.expected* since: v1.18-- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>+- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>Expected substring or RegExp or a list of those.@@ -256,7 +256,7 @@ The opposite of [`method: LocatorAssertions.toHaveClass`].### param: LocatorAssertions.NotToHaveClass.expected* since: v1.18-- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>+- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>Expected class or RegExp or a list of those.@@ -358,7 +358,7 @@ The opposite of [`method: LocatorAssertions.toHaveText`].### param: LocatorAssertions.NotToHaveText.expected* since: v1.18-- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>+- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>Expected substring or RegExp or a list of those.@@ -406,7 +406,7 @@ The opposite of [`method: LocatorAssertions.toHaveValues`].### param: LocatorAssertions.NotToHaveValues.values* since: v1.23-- `values` <[Array]<[string]|[RegExp]>>+- `values` <[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>Expected options currently selected.@@ -917,11 +917,18 @@ await Expect(Page.Locator("ul")).ToContainTextAsync(new string[] {"Text 3"});### param: LocatorAssertions.toContainText.expected* since: v1.18-* langs: python, js+* langs: js- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>Expected substring or RegExp or a list of those.+### param: LocatorAssertions.toContainText.expected+* since: v1.18+* langs: python+- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>++Expected substring or RegExp or a list of those.+### param: LocatorAssertions.toContainText.expected* since: v1.18* langs: java, csharp@@ -1081,11 +1088,18 @@ await Expect(locator).ToHaveClassAsync(new string[]{"component", "component sele### param: LocatorAssertions.toHaveClass.expected* since: v1.18-* langs: python, js+* langs: js- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>Expected class or RegExp or a list of those.+### param: LocatorAssertions.toHaveClass.expected+* since: v1.18+* langs: python+- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>++Expected class or RegExp or a list of those.+### param: LocatorAssertions.toHaveClass.expected* since: v1.18* langs: java, csharp@@ -1533,11 +1547,18 @@ await Expect(Page.Locator("ul")).ToHaveTextAsync(new string[] {"Text 1", "Text 2### param: LocatorAssertions.toHaveText.expected* since: v1.18-* langs: python, js+* langs: js- `expected` <[string]|[RegExp]|[Array]<[string]|[RegExp]>>Expected substring or RegExp or a list of those.+### param: LocatorAssertions.toHaveText.expected+* since: v1.18+* langs: python+- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>++Expected substring or RegExp or a list of those.+### param: LocatorAssertions.toHaveText.expected* since: v1.18* langs: java, csharp@@ -1670,11 +1691,18 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex(### param: LocatorAssertions.toHaveValues.values* since: v1.23-* langs: python, js+* langs: js- `values` <[Array]<[string]|[RegExp]>>Expected options currently selected.+### param: LocatorAssertions.toHaveValues.values+* since: v1.23+* langs: python+- `values` <[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>++Expected options currently selected.+### param: LocatorAssertions.toHaveValues.values* since: v1.23* langs: java, csharp