Hi
I've been exploring the use of Selenium to control/access a webpage in Edge.
I'm having real difficulty correctly sending the character sequence Ctrl + Alt + a to an input field on webpage.
It works fine if I just send a simple string such as "a" , so I guess it's something I'm doing wrong with the multiple key construction.
Any ideas?
Many Thanks
Rob
My code is as follows:-
Sub gogo()
Dim driver As New Selenium.WebDriver
Dim mykey As New Selenium.Keys
driver.Start "Edge"
driver.Get "WEALTH at work Trading Platform - Sign In Page"
driver.FindElementById("username").Click
snooze 5000 'sleep 5 secs
With driver.Actions
.KeyDown (mykey.Control)
.KeyDown (mykey.Alt)
.SendKeys ("a")
.KeyUp (mykey.Control)
.KeyUp (mykey.Alt)
.Perform
End With
End Sub
I've been exploring the use of Selenium to control/access a webpage in Edge.
I'm having real difficulty correctly sending the character sequence Ctrl + Alt + a to an input field on webpage.
It works fine if I just send a simple string such as "a" , so I guess it's something I'm doing wrong with the multiple key construction.
Any ideas?
Many Thanks
Rob
My code is as follows:-
Sub gogo()
Dim driver As New Selenium.WebDriver
Dim mykey As New Selenium.Keys
driver.Start "Edge"
driver.Get "WEALTH at work Trading Platform - Sign In Page"
driver.FindElementById("username").Click
snooze 5000 'sleep 5 secs
With driver.Actions
.KeyDown (mykey.Control)
.KeyDown (mykey.Alt)
.SendKeys ("a")
.KeyUp (mykey.Control)
.KeyUp (mykey.Alt)
.Perform
End With
End Sub