-
Notifications
You must be signed in to change notification settings - Fork 33
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
Buggy SetURL in UIA_Browser #43
Comments
The spacebar has always been added to prevent an accidental auto-complete with some other URL that was autosuggested. Why the "l" is added I'm not too sure. Can you try whether replacing line 799 with Otherwise, have you changed your default |
Yes
in Lines 798-799 works without having to comment out setkeydelay
|
I've pushed an update to try and fix this issue. Please see if the latest UIA_Browser works for you. |
It works now |
I am still having this issue in the latest version v2-1.0.2. SetKeyDelay is the default (unchanged). When using chrome and running seturl("https://www.hulu.com/watch/bf5b0d1a-b99b-492b-9748-86ff5a0669dc") it adds an extra " l" at the end of the url. It doesn't happen with every url, just certain values occasionally. |
UIA_Browser.SetUrl uses UIA_Browser.ControlSend to send the keystrokes, and SetKeyDelay doesn't affect it. Try manually changing the values of |
It's something strange with UIA_Browser.SetUrl using |
What I believe is happening is that sometimes the Ctrl+L has failed (because of too short delay between keys) causing to navigate to for example |
Yes, clearing the browser history fixed it. I played around to see if there is a universal special char that will go to the address bar and it's F6. In Chrome and Firefox a single F6 works and in MS Edge it takes F6+F6. So what seems to work universally is send Edit: I tested and in theory that should work, but because the address bar may already be selected it actually needs 3 rounds of F6+Enter: Edit2: So Some browsers will focus to the toolbars with F6 if focus is already in the address bar. Hitting F10+F10 switches between settings and address bar consistently on MS Edge and Chrome, but not Firefox. After more testing this no modifiers combo seems to work the best universally: Edit3: One final note that if right click menu is up, even ctrl+l won't work. So add an esc at the beginning. This is it: |
After V1, Seturl method adds a space and l (as in " l") at the end of the url using Chrome.
for example
UIA_Chrome("A").Navigate("www.yahoo.com")
would instead search for "www.yahoo.com l"
To fix it on my end, I reverted it to the past behavior , which is focus url edit box and send enter
Lines 798-799
The text was updated successfully, but these errors were encountered: