Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use document for context #519

Open
rcfcu2000 opened this issue Feb 1, 2024 · 0 comments
Open

use document for context #519

rcfcu2000 opened this issue Feb 1, 2024 · 0 comments

Comments

@rcfcu2000
Copy link

The mainframe_context may not work in all cases, in my case, the html page has js function which triggers a pop up div, and present() could not find the element, my investigation shows that mainframe_context is the cause of this problem.

If I use:
document.evaluate('//*[@Class="bosschat-chat-input chat-global-message boss-chat-editor-input"]',mainframe_context,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength

length is 0

document.evaluate('//*[@Class="bosschat-chat-input chat-global-message boss-chat-editor-input"]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength

length is 1

and mainframe_context is different than document
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant