I have a problem with my SeleniumDriver and it drives me crazy. I almost tried every solution on stackoverflow..
My simple goal is to send a key to the browser, but not to an element. My key is "mediaTrackNext" and can be found at
Windows.Forms.Keys.MediaNextTrack
I tried almost any solution:
Dim actions As Actions = New Actions(TestBot)
actions.SendKeys(Windows.Forms.Keys.MediaNextTrack).Perform()
or
TestBot.FindElement(By.XPath("/html/body")).SendKeys(Windows.Forms.Keys.MediaNextTrack)
or
Dim actions As Actions = New Actions(TestBot)
actions.SendKeys(TestBot.FindElement(By.XPath("//body")), Keys.F12).Perform()
I can´t even send keys like F12 to open the developers console, nothing happens.. F5 doesn´t work as well. And yes, I tried a few Tags and xpaths, but no tag seem to work.
Is there another way? I am so stuck right now..
Thank you. Best regards, xored