-
Notifications
You must be signed in to change notification settings - Fork 23
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
_WD_GetElementFromPoint + _WD_FrameEnter usage #369
Comments
Not true in this case because If you read the remarks in the header, you'll see that the function sets the value of @Extended if the browsing context was changed. The calling script should save / restore the browsing context if needed. |
hm.... interesting this following part Local $sScript1 = "return document.elementFromPoint(arguments[0], arguments[1]);"
...
$sElement = _WD_ExecuteScript($sSession, $sScript1, $sParams, Default, $_WD_JSON_Element) can return any element even So why it is fired: _WD_FrameEnter($sSession, $sElement)
$iFrame = 1 at least why |
IDK. The code should have exited prior to that point if there wasn't a frame involved. It shouldn't be too difficult for you to debug. 😃 |
I will test ASAP. |
You can assign this to me. |
@mlipok Are you still looking into this or can we close it? |
give some more time. |
Lets stick to current Pull Request. |
I use: onmousemove = function(e){console.log("mouse location:", e.clientX, e.clientY)} to track mouse and start testing this issue |
this is still valid |
I mean that we should add option to
|
This could be done, but there are a few problems with your suggestion --
I may have a solution for the above. |
I see getcontext But how to set or switch to desired context ? |
Wouldn't your solution require multiple calls to _WD_FrameList (once before determining the element from point and once after determining the element from point)? Edit: After some testing, I see that _WD_FrameList would only need to be called once. |
@mlipok Were you ever able to reproduce this issue? Edit: Or is that what you are looking at here? |
@mlipok Any feedback on the above? |
ASAP, keep waiting. |
Asap, few days |
We can reopen if you can reproduce. |
Not AFAIK. |
Bug report
Describe the bug
_WD_GetElementFromPoint
may affect script as it uses_WD_FrameEnter
to change framesHow to reproduce
WIP (so far it only points to a possible problem - i think this need more investigation)
Expected behavior
any UDF function which internally is using
_WD_FrameEnter
to change frames, should back tocalling frame
.Screenshots
WIP
Additional context
My intention is to follow your suggestion from here:
#362 (comment)
https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint
System under test
not related
The text was updated successfully, but these errors were encountered: