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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -