docs: fix website building (#10777)
This commit is contained in:
parent
2fee2b0adc
commit
8fd0157c95
@ -143,13 +143,14 @@ The following table shows Puppeteer's equivalents to [Protractor By](https://www
|
||||
> For improved reliability and reduced flakiness try our
|
||||
> **Experimental** [Locators API](https://pptr.dev/guides/locators)
|
||||
|
||||
| By | Protractor code | Puppeteer querySelector |
|
||||
| ----------------- | ----------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| CSS | Single: `$(by.css('<CSS>'))` <br> Multiple: `$$(by.css('<CSS>'))` | Single: `page.$('<CSS>')` <br> Multiple: `page.$$('<CSS>')` |
|
||||
| Id | `$(by.id('<ID>'))` | `page.$('#<ID>')` |
|
||||
| CssContainingText | `$(by.cssContainingText('<CSS>', '<TEXT>'))` | `page.$('<CSS> ::-p-text(<TEXT>)')` ` |
|
||||
| DeepCss | `$(by.deepCss('<CSS>'))` | `page.$(':scope >>> <CSS>')` |
|
||||
| XPath | `$(by.xpath('<XPATH>'))` | `page.$('::-p-xpath(<XPATH>)')` |
|
||||
| JS | `$(by.js('document.querySelector("<CSS>")'))` | `page.evaluateHandle(() => document.querySelector('<CSS>'))` |
|
||||
| By | Protractor code | Puppeteer querySelector |
|
||||
| ----------------- | --------------------------------------------- | ------------------------------------------------------------ |
|
||||
| CSS (Single) | `$(by.css('<CSS>'))` | `page.$('<CSS>')` |
|
||||
| CSS (Multiple) | `$$(by.css('<CSS>'))` | `page.$$('<CSS>')` |
|
||||
| Id | `$(by.id('<ID>'))` | `page.$('#<ID>')` |
|
||||
| CssContainingText | `$(by.cssContainingText('<CSS>', '<TEXT>'))` | `page.$('<CSS> ::-p-text(<TEXT>)')` ` |
|
||||
| DeepCss | `$(by.deepCss('<CSS>'))` | `page.$(':scope >>> <CSS>')` |
|
||||
| XPath | `$(by.xpath('<XPATH>'))` | `page.$('::-p-xpath(<XPATH>)')` |
|
||||
| JS | `$(by.js('document.querySelector("<CSS>")'))` | `page.evaluateHandle(() => document.querySelector('<CSS>'))` |
|
||||
|
||||
> For advanced use cases such as Protractor's `by.addLocator` you can check Puppeteer's [Custom selectors](https://pptr.dev/guides/query-selectors#custom-selectors).
|
@ -143,13 +143,14 @@ The following table shows Puppeteer's equivalents to [Protractor By](https://www
|
||||
> For improved reliability and reduced flakiness try our
|
||||
> **Experimental** [Locators API](https://pptr.dev/guides/locators)
|
||||
|
||||
| By | Protractor code | Puppeteer querySelector |
|
||||
| ----------------- | ----------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| CSS | Single: `$(by.css('<CSS>'))` <br> Multiple: `$$(by.css('<CSS>'))` | Single: `page.$('<CSS>')` <br> Multiple: `page.$$('<CSS>')` |
|
||||
| Id | `$(by.id('<ID>'))` | `page.$('#<ID>')` |
|
||||
| CssContainingText | `$(by.cssContainingText('<CSS>', '<TEXT>'))` | `page.$('<CSS> ::-p-text(<TEXT>)')` ` |
|
||||
| DeepCss | `$(by.deepCss('<CSS>'))` | `page.$(':scope >>> <CSS>')` |
|
||||
| XPath | `$(by.xpath('<XPATH>'))` | `page.$('::-p-xpath(<XPATH>)')` |
|
||||
| JS | `$(by.js('document.querySelector("<CSS>")'))` | `page.evaluateHandle(() => document.querySelector('<CSS>'))` |
|
||||
| By | Protractor code | Puppeteer querySelector |
|
||||
| ----------------- | --------------------------------------------- | ------------------------------------------------------------ |
|
||||
| CSS (Single) | `$(by.css('<CSS>'))` | `page.$('<CSS>')` |
|
||||
| CSS (Multiple) | `$$(by.css('<CSS>'))` | `page.$$('<CSS>')` |
|
||||
| Id | `$(by.id('<ID>'))` | `page.$('#<ID>')` |
|
||||
| CssContainingText | `$(by.cssContainingText('<CSS>', '<TEXT>'))` | `page.$('<CSS> ::-p-text(<TEXT>)')` ` |
|
||||
| DeepCss | `$(by.deepCss('<CSS>'))` | `page.$(':scope >>> <CSS>')` |
|
||||
| XPath | `$(by.xpath('<XPATH>'))` | `page.$('::-p-xpath(<XPATH>)')` |
|
||||
| JS | `$(by.js('document.querySelector("<CSS>")'))` | `page.evaluateHandle(() => document.querySelector('<CSS>'))` |
|
||||
|
||||
> For advanced use cases such as Protractor's `by.addLocator` you can check Puppeteer's [Custom selectors](https://pptr.dev/guides/query-selectors#custom-selectors).
|
||||
|
@ -122,7 +122,7 @@ function spliceIntoSection(
|
||||
}
|
||||
)
|
||||
.inputs(['packages/ng-schematics/README.md'])
|
||||
.outputs(['docs/ng-schematics.md'])
|
||||
.outputs(['docs/integrations/ng-schematics.md'])
|
||||
.build();
|
||||
|
||||
await Promise.all([copyMain, updateSupportedList, copyNgSchematics]);
|
||||
|
@ -22,7 +22,23 @@ module.exports = {
|
||||
'guides/debugging',
|
||||
],
|
||||
},
|
||||
'ng-schematics',
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Integrations',
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
title: 'Puppeteer Integrations',
|
||||
keywords: ['integrations'],
|
||||
},
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
type: 'doc',
|
||||
label: 'Angular Schematics',
|
||||
id: 'integrations/ng-schematics',
|
||||
},
|
||||
],
|
||||
},
|
||||
'chromium-support',
|
||||
'troubleshooting',
|
||||
'contributing',
|
||||
|
@ -146,13 +146,14 @@ The following table shows Puppeteer's equivalents to [Protractor By](https://www
|
||||
> For improved reliability and reduced flakiness try our
|
||||
> **Experimental** [Locators API](https://pptr.dev/guides/locators)
|
||||
|
||||
| By | Protractor code | Puppeteer querySelector |
|
||||
| ----------------- | ----------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| CSS | Single: `$(by.css('<CSS>'))` <br> Multiple: `$$(by.css('<CSS>'))` | Single: `page.$('<CSS>')` <br> Multiple: `page.$$('<CSS>')` |
|
||||
| Id | `$(by.id('<ID>'))` | `page.$('#<ID>')` |
|
||||
| CssContainingText | `$(by.cssContainingText('<CSS>', '<TEXT>'))` | `page.$('<CSS> ::-p-text(<TEXT>)')` ` |
|
||||
| DeepCss | `$(by.deepCss('<CSS>'))` | `page.$(':scope >>> <CSS>')` |
|
||||
| XPath | `$(by.xpath('<XPATH>'))` | `page.$('::-p-xpath(<XPATH>)')` |
|
||||
| JS | `$(by.js('document.querySelector("<CSS>")'))` | `page.evaluateHandle(() => document.querySelector('<CSS>'))` |
|
||||
| By | Protractor code | Puppeteer querySelector |
|
||||
| ----------------- | --------------------------------------------- | ------------------------------------------------------------ |
|
||||
| CSS (Single) | `$(by.css('<CSS>'))` | `page.$('<CSS>')` |
|
||||
| CSS (Multiple) | `$$(by.css('<CSS>'))` | `page.$$('<CSS>')` |
|
||||
| Id | `$(by.id('<ID>'))` | `page.$('#<ID>')` |
|
||||
| CssContainingText | `$(by.cssContainingText('<CSS>', '<TEXT>'))` | `page.$('<CSS> ::-p-text(<TEXT>)')` ` |
|
||||
| DeepCss | `$(by.deepCss('<CSS>'))` | `page.$(':scope >>> <CSS>')` |
|
||||
| XPath | `$(by.xpath('<XPATH>'))` | `page.$('::-p-xpath(<XPATH>)')` |
|
||||
| JS | `$(by.js('document.querySelector("<CSS>")'))` | `page.evaluateHandle(() => document.querySelector('<CSS>'))` |
|
||||
|
||||
> For advanced use cases such as Protractor's `by.addLocator` you can check Puppeteer's [Custom selectors](https://pptr.dev/guides/query-selectors#custom-selectors).
|
||||
|
Loading…
Reference in New Issue
Block a user