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

_WD_ElementOptionSelect and ShadowRoots #358

Open
Danp2 opened this issue Jul 30, 2022 · 8 comments
Open

_WD_ElementOptionSelect and ShadowRoots #358

Danp2 opened this issue Jul 30, 2022 · 8 comments
Labels
enhancement New feature or request

Comments

@Danp2
Copy link
Owner

Danp2 commented Jul 30, 2022

https://www.autoitscript.com/forum/topic/205553-webdriver-udf-help-support-iii/?do=findComment&comment=1505361

@mlipok
Copy link
Contributor

mlipok commented Jul 31, 2022

Yes I know that we must to check it deeply.
Thanks for setting this here as an important thing.

@Danp2 Danp2 added the enhancement New feature or request label Aug 4, 2022
@mlipok
Copy link
Contributor

mlipok commented Mar 3, 2023

@Danp2
Copy link
Owner Author

Danp2 commented Mar 3, 2023

I don't think so. Are you confusing _WD_ElementSelectAction with _WD_ElementOptionSelect?

@mlipok
Copy link
Contributor

mlipok commented Mar 3, 2023

https://www.autoitscript.com/forum/topic/205553-webdriver-udf-help-support-iii/?do=findComment&comment=1505364

@Zul You may be correct. _WD_ElementOptionSelect is the correct choice, expect when a shadow root is involved.

@mlipok
Copy link
Contributor

mlipok commented Mar 3, 2023

I will start with snipped posted here:
https://www.autoitscript.com/forum/topic/205553-webdriver-udf-help-support-iii/?do=findComment&comment=1505239

and check if WD_ElementOptionSelect and ShadowRoots works or not.

@Danp2
Copy link
Owner Author

Danp2 commented Mar 3, 2023

Ok, but I'm fairly confident that I already confirmed that it doesn't work when shadowroots are involved.

@mlipok
Copy link
Contributor

mlipok commented Mar 3, 2023

But need to be tested why it works with _WD_ElementSelectAction and not with _WD_ElementOptionSelect?
Thus I need to start with comparatable working solution.

@Danp2
Copy link
Owner Author

Danp2 commented Mar 3, 2023

_WD_ElementSelectAction is designed to interact with an element that was previously located via _WD_FindElement. If you look at the code originally posted by @Zul, you'll see that it uses _WD_FindElement and _WD_GetShadowRoot to access and locate the target element prior to calling _WD_ElementSelectAction.

_WD_ElementOptionSelect is designed to located then click on a Select element's options. It doesn't yet contain any logic to local Select elements inside a shadow root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants