(document: Document, id: string, inputs?: WebServiceActionInputs)
| 134 | } |
| 135 | |
| 136 | async runActionUsingWebview(document: Document, id: string, inputs?: WebServiceActionInputs) { |
| 137 | const webviewExtractor = this.createWebviewExtractor(document) |
| 138 | |
| 139 | await webviewExtractor.initializeWebview() |
| 140 | |
| 141 | // TODO - wait for the page to have fully loaded |
| 142 | await wait(3000) |
| 143 | |
| 144 | const extracted = await webviewExtractor.runAction(id, inputs) |
| 145 | |
| 146 | return extracted as DetectedResource | null |
| 147 | } |
| 148 | |
| 149 | static useFallbackParser(document: Document, url: URL) { |
| 150 | const articleParser = new ArticleParser(url) |
nothing calls this directly
no test coverage detected