Does selenium support Microsoft Edge?

How to run Microsoft Edge in Selenium?

I am trying to run Microsoft Edge in Selenium.

I am using Ubuntu 14.04 and Firefox 24.

I am using ChromeDriver version 2.21.371460 (installed by Selenium).

I have installed WebDriver using following command. Sudo apt-get install python-wxgtk2.8 sudo pip install webdriver. When I run this code. Import wx. Import time. Import os. Import webdriver. Import selenium. Driver = webdriver.Firefox() driver.implicitlywait(10) driver.get("") time.sleep(2) print "The URL you entered is". Print driver.geturl() driver.quit() It does not open the website but gives following error. Traceback (most recent call last): File "", line 8, in driver = webdriver.Firefox() File "/home/ubuntu/.virtualenvs/selenium-practice/local/lib/python2.7/site-packages/selenium/webdriver/firefox/", line 160, in init
self.binary, timeout), File "/home/ubuntu/.7/site-packages/selenium/webdriver/firefox/", line 40, in init
File "/home/ubuntu/.7/site-packages/selenium/webdriver/", line 91, in launchbrowser
self.startwithprofile(profile, binary) File "/home/ubuntu/.py", line 106, in startwithprofile firefoxprofile.

Does selenium support Microsoft Edge?

My understanding is not, but in order to do Selenium testing using Chrome or Firefox.

one needs to use ChromeDriver and FirefoxDriver respectively (as well as a bunch of other dependencies). Since Microsoft removed support for Linux with the removal of Windows SDK support, the use of FirefoxDriver would be futile.

My testing has only been to test websites that are still working on Edge, so I haven't yet tried using Chromedriver. I'd probably try Chromedriver first, since selenium works similarly in Microsoft Edge and Chrome, though the same problem does occur where the code to open new tabs sometimes causes a crash. The solution is to use the driver.executeScript method instead:
ChromeOptions.addArguments("start"); chromeOptions.addArguments("--incognito"); // add arguments specific to a window to your desired options as follows: chromeOptions.addArguments("--headless"); chromeOptions.addArguments("--disable-infobars"); chromeOptions.addArguments("--remote-debugging-port=9222"); chromeOptions.addArguments("--window-size=1280,720"); chromeOptions.addArguments("--test-type=webdriver"); driver.get(""); WebElement link1 = driver.findElement(By.xpath(".click();
// link2 needs to be clicked after this line.; There is a possibility you could use Firefox aswell, but it is not tested by myself;. I have never had reason to, because the vast majority of our testing is done through the browsers above (Chrome and Edge) and I never once had to go into any testing through Mozilla. This question could provide some possible solutions: Microsoft Edge webdriver. Edit: I'm going to be more clear about things regarding Edge. Yes, I have confirmed using MicrosoftEdge works just fine, my concern is when we want to upgrade our Edge versions and have issues.

What is edge driver in selenium?

You can use edge for making an AJAX request as per your convenience like when you are trying to get the web address of the browser in a selenium test then you can use Edge.

This is not recommended though and can be harmful for some cases.

For e.g, you have to know that when you open chrome browser after loading a malicious site, it will redirect you to other website. Now if you are opening the same malicious site in Edge, it will make some AJAX calls which it actually doesn't make in a real Chrome.

So, if you don't control it, in-order to check it, you can use Edge, if you have a more reliable and controlled way, then there is nothing to worry about.

Related Answers

How can we use the Selenium tool with HeadSpin?

Selenium is a tool that is used to automate functional testing. There are two types...

What are 5 Uses of Selenium?

Selenium is a web-automation tool that helps you to test web applications....

How can we use the Selenium tool with HeadSpin?

Selenium is a cross-browser testing automation framework w...