【发布时间】:2023-03-14 01:22:01
【问题描述】:
我正在尝试使用 Selenium Webdriver/C# compile 做一个箭头,但是当我尝试编译时,我得到了这个错误:
'Keys' 是 'OpenQA.Selenium.Keys' 和 'System.Windows.Forms.Keys' (CS0104)
我的代码:
driver.FindElement(By.Id("ctl00_PlaceHolderMain_ctrlChangeBillingAddress_ctrlChangeBillingAddress_txtBillingAddress")).SendKeys(Keys.ArrowDown);
driver.FindElement(By.Id("ctl00_PlaceHolderMain_ctrlChangeBillingAddress_ctrlChangeBillingAddress_txtBillingAddress")).SendKeys(Keys.Enter);
【问题讨论】: