WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Not able to see the xml source/any information while inspecting windows subsytem for Android .

Open LisaAga opened this issue 3 years ago • 9 comments

Hi Team ,

I was trying to automate windows subsytem for android but on developer page while inspecting the elements i cannot see anything in inspect.exe . Can you help me understand why is it ? and how will i be able to automate it.

Attaching here the sreenshot image

LisaAga avatar Jun 29 '22 18:06 LisaAga

LisaAga Why do you need to work with this page? It is not a good solution to work with it via UI, you can change the value via registry.

Shakevg avatar Jun 29 '22 20:06 Shakevg

@Shakevg : I need to enable this for some testing purpose i cant disclose . Can you help me to where is the registry and how can i automate it ?

LisaAga avatar Jun 30 '22 05:06 LisaAga

LisaAga Enable Developer Mode in Windows settings (configure via UI or use command bellow):

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"

Ho to modifying the registry key value from code

Shakevg avatar Jul 17 '22 07:07 Shakevg

@Shakevg : Thank you for the comment but this command is not working for Windows Subsystem for android . Can you help is it some different path that needs to be passed in the command . Also in the below screenshot you can see on enabling developer mode a link manage developer settings get enabled now i want to click on it thru automation but i cant as no info is seen in inspect element . can you help me here on how can i do it ? image (2)

LisaAga avatar Jul 22 '22 11:07 LisaAga

LisaAga You should find the correct path when comparing 2 registry files (before enabling development mode and after). https://superuser.com/questions/79566/whats-the-easiest-and-fastest-way-to-compare-2-registry-files

Shakevg avatar Jul 22 '22 19:07 Shakevg

@Shakevg : Can you help me to understand where should i find the registry key in my machine ? nothing changes here this path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock on enabling developer mode from UI .

LisaAga avatar Jul 28 '22 06:07 LisaAga

LisaAga You should find what registry key changed on your Windows Subsystem for android. I proposed that you save the entire registry's initial backup before changing development mode and after. Compare it and find the key that was changed - it will require the registry key. You can find methods to that by the link above.

Shakevg avatar Jul 29 '22 18:07 Shakevg

@Shakevg : Thank you for the input but i tried the above process but i couldn't find any changes in registry on enabling the developer mode on in Window Subsytem for android.

Is there a possibility that the changes are not made in registry for it?

LisaAga avatar Aug 01 '22 10:08 LisaAga

@LisaAga What is the Windows version on your device? Could you try the next steps manually https://techcult.com/enable-or-disable-developer-mode-in-windows-10/

Shakevg avatar Aug 04 '22 20:08 Shakevg