Microsoft Webdriver For Mac
A library to ease the creation of Selenium WebDriver instances in.net Core projects. Supports browser instances run locally or on a Selenium grid. Supported Browsers: Chrome Firefox Edge (Windows 10) Internet Explorer 11 (Windows Platforms) Safari (MacOS) Platforms: Windows (PlatformType.Windows) Linux (PlatformType.Linux) MacOS (PlatformType.Mac) Tested and working on Windows 10, Linux. Only one Safari browser instance can be active at any given time, and only one WebDriver session at a time can be attached to the browser instance. These constraints ensure that the simulated behavior (mouse, keyboard, touch, and so forth) accurately reflects what a user can do in a macOS windowing environment and prevents tests from competing. Only one Safari browser instance can be active at any given time, and only one WebDriver session at a time can be attached to the browser instance. These constraints ensure that the simulated behavior (mouse, keyboard, touch, and so forth) accurately reflects what a user can do in a macOS windowing environment and prevents tests from competing.

Selenium WebDriver- Microsoft Edge Browser:
In this tutorial, we will learn how to launch the Microsoft Edge browser in the Selenium WebDriver.
Before we start automating our test scriptwith Microsoft Edge browser using Selenium, we need to make sure that,
- We should have Windows-10installed in our machine.
 - After that, download theMicrosoft WebDriver server version for your OS builds.
 - And try to use the latestversion of Selenium (version 3.0 and above).
 
We will create this test case in the sametest suite (new_test), which wecreated in the previous tutorial.
Step1:
- Firstly, right-click on the src folder and create a new Class Filefrom New → Class.
 
- And Give your Class name as Test_edge and click onthe Finish button.
 
Step2:
- Firstly, we have to check the version of our OS builds. Based on our OS version build, we have to download the Edge driver.
 - And then go to Start → Settings → about this app to move to the Edge browser.
 - The settings window would be displayed, in the below screenshot.
 
- Remember the release numberwritten next to OS Build. In this case, it is 15063, as shown in the above image.
 
Step3:
- Now, go to the Selenium community,and download the Edge driver server.
 - In the Selenium community, findthe third party driver division, and click on the Microsoft edge driver linkwhich is shown in the below image,
 
Or
Directly open the below link, it willnavigate you to the download page of Microsoft Edge driver in your browser.
- Move your cursor downwardlittle bit till you see the Downloads section.
 - And download the one whichmatches your build number.
 - In this case, we will click on Release15063 and download it.
 
Step4:
- Then, download the zip fileinto our local system, and unzip the folder, it will generate MicrosoftWebDriver.exe fileautomatically.
 
Step5:
- Run the server before launchingthe Edge browser, with the help of
 
System.property.
Syntax:
2  | System.SetProperty(“key”,”value”);  | 

/god-of-war-2-highly-compressed-for-ppsspp.html. To set the system property forMicrosoftWebDriver where
2  | Key=“webdriver.edge.driver”  | 
And the path of your MicrosoftWebDriver.exefile to invoke the MicrosoftWebDriver class.
2  | Value=”C:UsersJTPDownloadsmicrosoft edge driverMicrosoftWebDriver.exe'  | 
Sample code for the system property:
2 4 6  | // System Property for Edge Driver  System.setProperty('webdriver.edge.driver','C:UsersJTPDownloadsmicrosoft edge riverMicrosoftWebDriver.exe'); WebDriverdriver=newEdgeDriver();  | 
Let us see one sample test case, where wewill try to automate the following scenarios in the Microsoft Edge browser.
| Steps | Actions | Input | Excepted Result | 
| 1. | Open the Microsoft Edge browser. | The Microsoft Edge browser should be opened. | |
| 2. | Navigate to the URL | https://twitter.com/login?lang=en | The twitter login page must be displayed. | 
| 3. | Pass the value in the username text box. | Username=admin | Username value should be entered. | 
| 4. | Pass the value in the password text box. | Password=admin | Password value should be entered. | 
| 5. | Click on the login button. | The login button should be clicked. | |
| 6. | Capture the title of the home page. | The title of the home page should be captured. | |
| 7. | Verify the title of the home page. | The title of the home page should be verified. | |
| 8. | Close the browser. | The browser should be closed. | 
Here, the sample code for the above example:
Microsoft Webdriver For Microsoft Edge
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40  | packagetestpackage; import org.openqa.selenium.WebDriver; publicclasstest_edge{ publicstaticvoidmain(String[]args)throwsInterruptedException{ System.setProperty('webdriver.edge.driver','C:UsersJTPDownloadsmicrosoft edge driverMicrosoftWebDriver.exe'); WebDriver driver=newEdgeDriver(); driver.get('https://twitter.com/login?lang=en'); // Step3: Pass the value in the username text box. driver.findElement(By.xpath('//input[@placeholder='Phone, email or username']1]')).sendKeys('admin'); System.out.println('user name entered successfully'); // Step4: Pass the value in the password text box. driver.findElement(By.xpath('//div[@class='clearfixfield']//input Thread.sleep(2000); System.out.println('password entered successfully '); driver.findElement(By.className('clearfix')).click(); // Step6: Capture the title of the home page.  Stringact_title=driver.getTitle(); if(exp_title.equals(act_title)) System.out.println('test passed'); else{ } driver.close(); }  | 
- Now, right-click on the Eclipse code and select Run as → Java Application.
 - The output of the above test script would be displayed in the Microsoft Edge browser.
 
Microsoft Webdriver Exe
- The output of all print commandof the above test script would be displayed in the Eclipse console window.