Skip to content

Commit

Permalink
Delete unnecessary DOM Commands & Added Reference Disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Dec 9, 2024
1 parent 80663a5 commit 254a191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ If you choose to support our work, please contact [@vinyzu](https://discord.com/

Patchright is licensed [Apache 2.0](https://choosealicense.com/licenses/apache-2.0/)

[Some Parts](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/blob/main/patchright_driver_patch.js#L435-L448) of the Codebase are inspired by [Driverless](https://github.com/kaliiiiiiiiii/Selenium-Driverlesshttps://github.com/kaliiiiiiiiii/Selenium-Driverless).

---

## Disclaimer
Expand Down
4 changes: 2 additions & 2 deletions patchright_driver_patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,11 @@ getFrameMainFrameContextIdMethod.setBodyText(

// -- _context Method --
const contextMethodCode = `
await this._page._delegate._mainFrameSession._client._sendMayFail('DOM.enable');
/* await this._page._delegate._mainFrameSession._client._sendMayFail('DOM.enable');
var globalDoc = await this._page._delegate._mainFrameSession._client._sendMayFail('DOM.getFrameOwner', { frameId: this._id });
if (globalDoc) {
await this._page._delegate._mainFrameSession._client._sendMayFail("DOM.resolveNode", { nodeId: globalDoc.nodeId })
}
} */
// if (this.isDetached()) throw new Error('Frame was detached');
try {
Expand Down

0 comments on commit 254a191

Please sign in to comment.