SOLVED
Home

UI Automation (edge chromium)

%3CLINGO-SUB%20id%3D%22lingo-sub-427085%22%20slang%3D%22en-US%22%3EUI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-427085%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20the%20expected%20method%20to%20UI%20(ux)%20automate%20the%20new%20Edge%20(insider)%20browser%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-469349%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-469349%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F108313%22%20target%3D%22_blank%22%3E%40Bobby%20Cannon%3C%2FA%3E%20we%20plan%20on%20having%20an%20MSEdgeDriver%20very%20soon%2C%20and%20you%20can%20also%20use%20puppeteer%20and%20headless.%20In%20addition%2C%20you%20can%20use%20ChromeDriver%20for%20the%20time%20being%20by%20passing%20in%20the%20path%20to%20msedge.exe%20in%20a%20ChromeOption.%20Is%20there%20anything%20specifically%20you%20would%20like%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471380%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471380%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F318459%22%20target%3D%22_blank%22%3E%40johnjansen%3C%2FA%3E%26nbsp%3BI%20have%20an%20automation%20open%20source%20project%20that%20I%20want%20to%20add%20support%20for%20Edge.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20suggest%2C%20if%20you%20can%20do%20this%2C%20to%20stick%20with%20the%20Chrome%20way%20of%20automating.%20It's%20uber%20nice%20to%20not%20have%20to%20download%20yet%20another%20thing%20to%20get%20automation%20working.%20I%20never%20supported%20Edge%20due%20to%20the%20fact%20that%20I'd%20have%20to%20instruct%20TestR%20to%20download%20the%20%22driver%22%20to%20enable%20support.%20Just%20too%20much%20friction.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20of%20the%20benefits%20of%20TestR%20over%20other%20automation%20frameworks%20is%20that%20it%20just%20works%20with%20very%20little%20friction.%20IE%20and%20Chrome%20just%20works%20and%20FireFox%20has%20very%20little%20configuration%20requirements.%20You%20can%20reference%20one%20nuget%20package%2C%20add%20a%20few%20lines%20of%20code%2C%20and%20boom%20you%20are%20automating%20browsers%20and%20desktop%20applications.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471989%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471989%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F108313%22%20target%3D%22_blank%22%3E%40Bobby%20Cannon%3C%2FA%3E%26nbsp%3Bwhatever%20you%20are%20doing%20for%20Chrome%20should%20work%20for%20the%20new%20Edge%2C%20so%20that%20should%20be%20fine.%20How%20are%20you%20automating%20Chrome%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-522901%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-522901%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F318459%22%20target%3D%22_blank%22%3E%40johnjansen%3C%2FA%3E%26nbsp%3Bany%20plans%20to%20support%20IE%20like%20automation%3F%20we%20use%20winforms%20to%20do%20browser%20automation%20that%20launches%20IE%20and%20navigates%20through%20website%20for%20our%20customers.%20Right%20now%2C%20using%20a%20WebDriver%20seems%20to%20be%20a%20solution%20more%20for%20test%20automation%20more%20than%20end%20user%20automation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdditionally%2C%20when%20I%20had%20tried%20Selenium%20with%20Old%20Edge%2C%20I%20had%20to%20match%20it%20to%20the%20Windows%20version%20which%20is%20not%20in%20our%20control.%20Second%2C%20if%20I%20remember%20correctly%2C%20I%20could%20not%20release%20the%20hook%20to%20the%20selenium%20launched%20browser%20window%20as%20ending%20my%20program%20also%20closed%20the%20browser.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-525510%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-525510%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F316234%22%20target%3D%22_blank%22%3E%40CodeDJ%3C%2FA%3E%26nbsp%3BTestR%20would%20be%20a%20great%20solution%20for%20testing%20your%20WinForms%20%2B%20IE%20project.%20I%20could%20help%20you%20get%20started%20if%20you%20would%20like%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETestR%20is%20Open%20Source%20(MIT)%20and%20you%20can%20use%20the%20same%20API%20to%20automate%20your%20desktop%20(winforms)%20application%20and%20whatever%20is%20running%20in%20the%20browser.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-525841%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-525841%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F108313%22%20target%3D%22_blank%22%3E%40Bobby%20Cannon%3C%2FA%3E%26nbsp%3Bthanks%20and%20just%20to%20be%20sure.%20Are%20you%20suggesting%20to%20use%20TestR%20for%20browser%20automation%20from%20WinForms%20on%20end%20user%20machines%3F%20If%20not%2C%20sorry%20for%20the%20confusion.%20The%20requirement%20is%2C%20my%20app%20should%20launch%20a%20new%20browser%2C%20navigate%20through%20a%20website.%20The%20user%20can%20then%20take%20over%20and%20decide%20what%20to%20do%20from%20there%20on%2C%20including%20whether%20to%20close%20the%20browser%20or%20navigate%20away%20to%20a%20totally%20different%20website.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EToday%2C%20we%20do%20this%20using%20IE.%20Assuming%20IE%20is%20going%20to%20be%20replaced%20by%20new%20Edge%2C%20we%20will%20have%20to%20find%20an%20alternate%20way%20of%20doing%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20mentioned%20in%20the%20previous%20post%2C%20I%20tried%20Selenium%20with%20Chrome%2Fold%20Edge%20but%20could%20not%20release%20the%20browser%20once%20done%20navigating%20i.e.%20after%20our%20automated%20navigation%2C%20the%20browser%20and%20my%20app%20should%20be%20totally%20independent.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-526843%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-526843%22%20slang%3D%22en-US%22%3ETestR%20can%20attach%20%2F%20detach%20from%20existing%20browsers.%20Interested%20in%20how%20your%20app%20is%20starting%20the%20browser%20and%20automating%20it.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20intesting%20thing%20is%20you%20could%20implement%20TestR%20in%20your%20application%20and%20do%20that%20automation%20in%20your%20application%20which%20would%20immediately%20get%20you%20support%20for%20IE%2C%20FF%2C%20and%20Chrome.%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20you%20could%20test%20everything%20external%20also%20using%20TestR%20in%20your%20%22unit%20test%22%20project.%20We%20should%20schedule%20a%20time%2C%20I%20don't%20mind%20showing%20you%20a%20demo%20via%20Skype%20or%20Hangouts.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-528856%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-528856%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F108313%22%20target%3D%22_blank%22%3E%40Bobby%20Cannon%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20info.%20I%20will%20try%20TestR%20to%20see%20if%20it%20meets%20our%20needs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20use%26nbsp%3BSHDocVw.InternetExplorer%20currently%20to%20do%20the%20automation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-536018%22%20slang%3D%22en-US%22%3ERe%3A%20UI%20Automation%20(edge%20chromium)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-536018%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F316234%22%20target%3D%22_blank%22%3E%40CodeDJ%3C%2FA%3E%26nbsp%3BI%20did%20want%20to%20add%20that%20we%20have%20heard%20the%20request%20about%20ending%20your%20testing%20application%20also%20closed%20the%20browser.%20We%20have%20been%20looking%20into%20that.%20I%20will%20say%20that%20it%20sounds%20like%20your%20winforms%20app%20for%20executing%20the%20browser%20is%20something%20that%20WebDriver%20is%20meant%20to%20do.%20The%20goal%20of%20webdriver%20is%20to%20replicate%20the%20actions%20of%20an%20actual%20human%20as%20we%20best%20we%20can.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Bobby Cannon
Occasional Contributor

What is the expected method to UI (ux) automate the new Edge (insider) browser? 

9 Replies
Solution

@Bobby Cannon we plan on having an MSEdgeDriver very soon, and you can also use puppeteer and headless. In addition, you can use ChromeDriver for the time being by passing in the path to msedge.exe in a ChromeOption. Is there anything specifically you would like? 

@johnjansen I have an automation open source project that I want to add support for Edge. 

 

I would suggest, if you can do this, to stick with the Chrome way of automating. It's uber nice to not have to download yet another thing to get automation working. I never supported Edge due to the fact that I'd have to instruct TestR to download the "driver" to enable support. Just too much friction. 

 

One of the benefits of TestR over other automation frameworks is that it just works with very little friction. IE and Chrome just works and FireFox has very little configuration requirements. You can reference one nuget package, add a few lines of code, and boom you are automating browsers and desktop applications.

@Bobby Cannon whatever you are doing for Chrome should work for the new Edge, so that should be fine. How are you automating Chrome?

@johnjansen any plans to support IE like automation? we use winforms to do browser automation that launches IE and navigates through website for our customers. Right now, using a WebDriver seems to be a solution more for test automation more than end user automation.

 

Additionally, when I had tried Selenium with Old Edge, I had to match it to the Windows version which is not in our control. Second, if I remember correctly, I could not release the hook to the selenium launched browser window as ending my program also closed the browser.

@CodeDJ TestR would be a great solution for testing your WinForms + IE project. I could help you get started if you would like?

 

TestR is Open Source (MIT) and you can use the same API to automate your desktop (winforms) application and whatever is running in the browser. 

@Bobby Cannon thanks and just to be sure. Are you suggesting to use TestR for browser automation from WinForms on end user machines? If not, sorry for the confusion. The requirement is, my app should launch a new browser, navigate through a website. The user can then take over and decide what to do from there on, including whether to close the browser or navigate away to a totally different website.

 

Today, we do this using IE. Assuming IE is going to be replaced by new Edge, we will have to find an alternate way of doing this.

 

As mentioned in the previous post, I tried Selenium with Chrome/old Edge but could not release the browser once done navigating i.e. after our automated navigation, the browser and my app should be totally independent.

TestR can attach / detach from existing browsers. Interested in how your app is starting the browser and automating it.

The intesting thing is you could implement TestR in your application and do that automation in your application which would immediately get you support for IE, FF, and Chrome.

Then you could test everything external also using TestR in your "unit test" project. We should schedule a time, I don't mind showing you a demo via Skype or Hangouts.

@Bobby Cannon thanks for the info. I will try TestR to see if it meets our needs.

 

We use SHDocVw.InternetExplorer currently to do the automation.

@CodeDJ I did want to add that we have heard the request about ending your testing application also closed the browser. We have been looking into that. I will say that it sounds like your winforms app for executing the browser is something that WebDriver is meant to do. The goal of webdriver is to replicate the actions of an actual human as we best we can.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
21 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies