c# - how to press Ctrl + ] in Selenium web driver -
i have ff.code opens chrome browser , press "f12" open chrome dev tools, i've been searching in google on how press ctrl+] unfortunately did not find article/info it. has here made stuff? thanks!
iwebdriver wdriver = new chromedriver(); wdriver.navigate().gotourl("www.samplewebapp.com"); wdriver.manage().window.maximize(); actions action = new actions(wdriver); action.sendkeys(openqa.selenium.keys.f12).perform();
use either
actions action=new actions(driver); action.sendkeys(openqa.selenium.keys.control + "]").build().perform();
or
yourwebelement.sendkeys(keys.control + "]");
Comments
Post a Comment