Selenium Webdriver C# Sendkeys (Keys.Arrowdown)

后端 未结 5 1921
傲寒
傲寒 2021-02-14 20:14

I\'m trying to do do an arrow using Selenium Webdriver/C# compile but when I try to compile I get this error:

\'Keys\' is an ambiguous reference between \

5条回答
  •  醉话见心
    2021-02-14 20:50

    I can provide you two realizations, but the first one works only locally:

    1. Element.SendKeys(OpenQA.Selenium.Keys.ArrowUp);

    2. char c = '\uE013'; // ASCII code ArrowUp

      Element.SendKeys(Convert.ToString(c));

提交回复
热议问题