View Selenium header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread.Sleep(2000);//Wait the extension about page open | |
driver.Close(); //Close about page | |
driver.SwitchTo().Window(driver.WindowHandles[0]); | |
driver.Navigate().GoToUrl("chrome-extension://idgpnmonknjnojddfkpgkljpfnnfcklj/popup.html"); | |
driver.ExecuteScript("document.getElementsByClassName('mdc-text-field__input')[0].value = 'MY_HEADER';"); | |
driver.ExecuteScript(" var evt = document.createEvent('HTMLEvents');evt.initEvent('input', false, true);document.getElementsByClassName('mdc-text-field__input')[0].dispatchEvent(evt);"); |
View gist:ed150b482b8c87b41f67e3c7e53973ff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SafeBusWrapper : IDisposable | |
{ | |
private static readonly Logger Log = LogManager.GetCurrentClassLogger(); | |
private readonly IAdvancedBus _advancedBus; | |
private readonly IBus _bus; | |
public SafeBusWrapper(string connecitonString, Action<IServiceRegister> registerServices) | |
{ |
View gist:34821c465eb09f72b5b1d3cc8023ffde
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SafeBusWrapper : IDisposable | |
{ | |
private static readonly Logger Log = LogManager.GetCurrentClassLogger(); | |
private readonly IAdvancedBus _advancedBus; | |
private readonly IBus _bus; | |
public SafeBusWrapper(string connecitonString, Action<IServiceRegister> registerServices) | |
{ |
View gist:fb0d842ec4f7063403578fba5bc99d3d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SafeBusWrapper : IDisposable | |
{ | |
private static readonly Logger Log = LogManager.GetCurrentClassLogger(); | |
private readonly IAdvancedBus _advancedBus; | |
private readonly IBus _bus; | |
public SafeBusWrapper(string connecitonString, Action<IServiceRegister> registerServices) | |
{ |