Home > Net >  C # the selenium test Edge browser automatically
C # the selenium test Edge browser automatically

Time:10-05

C # the selenium test Edge browser automatically, through MicrosoftWebDriver. Exe calls Edge browser, the program runs will pop up when performing MicrosoftWebDriver. Exe console window, and then open the browser automatically, how to prevent MicrosoftWebDriver. Exe the console window automatically pop up?
As with Python doesn't pop up the window,

CodePudding user response:

Convenient to upload your source code to learn

CodePudding user response:

Code should be relatively simple, mainly environment configuration,
 
Using the Selenium;
Using OpenQA. Selenium;
Using OpenQA. Selenium. Edge;

IWebDriver browser=new EdgeDriver ();//should be here put MicrosoftWebDriver. Exe console window is opened, to solve!
The Navigate (). GoToUrl (" http://www.baidu.com/");
The Close ();

CodePudding user response:

Vs own test resource management can you use to write test code will not be a pop-up console, and can run more intuitive to see the results of the test is also more flexible, but appear error code is not convenient to find out, because there is no console, it will not display an error position lines, but in the lower left corner will have error statements, see yourself like that
  •  Tags:  
  • C #
  • Related