microsoft-edge

Javascript -> file-download Edge -> set “from” to actual site

狂风中的少年 提交于 2019-12-12 03:27:56
问题 I can download files from my server. After a lot research I found this method in javascript: fetch("requestUrlToFile", { method: "GET", headers: { "authorization": "jwt" } }) .then(checkStatus) .then(function(res){ return res.blob(); }) .then(function(blob){ var filename = "PdfName-" + new Date().getTime() + ".pdf"; if (typeof window.navigator.msSaveBlob !== 'undefined') { // IE var blob = new Blob([blob], { type: 'application/pdf' }); window.navigator.msSaveBlob(blob, filename); } else {//if

How to redirect users to IE when content using Active X controls is opened with Edge?

安稳与你 提交于 2019-12-12 02:27:27
问题 Based on this link: Edge redirecting to IE (at Reddit), there is apparently a way to show a special purpose page displaying: This website needs Internet Explorer This website uses technology that will work best in Internet Explorer. Open with Internet Explorer Keep going in Microsoft Edge It will be very helpful for my applications using Active X controls. I already have code such as: <meta http-equiv="X-UA-Compatible" content="IE=10;requiresActiveX=true" /> in all my head sections (added in

Nested SVG's width height set in % not working in chrome or edge

女生的网名这么多〃 提交于 2019-12-11 19:13:44
问题 <div> <div style="width:200px;height:70px"> <div style="width:100%;height:100%;"> <svg id="svg1" width="100%" height="90%"> <rect height="100%" width="100%" fill="#00001a"></rect> <svg id="svg2" width="90%" height="10%" x="10%"> <rect height="100%" width="100%" fill="#ff4d4d"></rect> </svg> <svg id="svg3" width="90%" height="90%" x="10%" y="10%"> <rect height="100%" width="100%" fill="#ff4d4d"></rect> <line x1="0%" x2="2700px" y1="25%" y2="25%" stroke="#aa001a"/> </svg> <svg id="svg4" width=

MicrosoftWebDriver 16299, 15063 doesn't work when I minimise Edge browser window

ε祈祈猫儿з 提交于 2019-12-11 17:49:02
问题 When I execute tests using MicrosoftWebDriver for Edge all works fine, but when I minimise the window all tests become failed. Does Edge or MicrosoftWebDriver have any options to avoid that behavior? 回答1: As you have been trying to minimise the Browser Window while your Test Execution is In Progress it will be against all the Best Practices . At this point it is worth to mention that as Selenium mocks the User Actions hence Selenium needs Browser focus . If the focus is lost Selenium won't be

Unable to launch Microsoft edge with protractor

巧了我就是萌 提交于 2019-12-11 16:31:35
问题 Unable to launch edge browser on windows 10 with protractor. edge -Microsoft EdgeHTML 15.15063 downloaded the supported edge driver from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ i.e Release 15063. here is my protractor conf file. module.exports = { //seleniumAddress: 'http://localhost:17556', keepAlive: true, seleniumArgs: ['-Dwebdriver.edge.driver=node_modules/protractor/node_modules/webdriver-manager/selenium/MicrosoftWebDriver.exe'], capabilities: {

start microsoft edge in fullscreen

五迷三道 提交于 2019-12-11 15:15:15
问题 I am repairing a few computers for use as digital signs. I therefore want a script to start Microsoft Edge in fullscreen on boot. The website I set as default in the settings but I have no clue on how to start the app in fullscreen, any ideas? 回答1: By changing the script posted on https://superuser.com/questions/1090711/start-microsoft-edge-maximized-on-first-run a little I was able to fullscreen the microsoft edge app on launch. start microsoft-edge:http://google.com >> $wshell = New-Object

jQuery onclick not working in browser Edge

好久不见. 提交于 2019-12-11 14:59:32
问题 View: <asp:PlaceHolder runat="server" ID="myPlaceHolder"> <button id="cmdMyButton">ButtonName</button> jQuery: $(function () { $('body').on('click', "#cmdMyButton", function (e) { alert("alertmessage"); }); ... Clicking the button cmdMyButton works in Firefox and Chrome, but does absolutely nothing in Edge. I do not get the alert in Edge. I have tried everything in this topic Microsoft Edge: onclick event stops working? But nothing worked for me. I am using jQuery 3.3.1 回答1: Solved by

OpenQA.Selenium.WebDriverException: 'Cannot start the driver service on http://localhost:20548/'

你离开我真会死。 提交于 2019-12-11 12:50:08
问题 I'm getting the following error when I try to open the EdgeDriver. OpenQA.Selenium.WebDriverException: 'Cannot start the driver service on http://localhost:20548/' The FirefoxDriver and ChromeDriver work just fine. This is an issue with the driver? There is nothing running on port 20548. The below code returns nothing. C:\WINDOWS\system32>netstat -a -o | find "20548" Did I need to do anything else besides downlowd the Selenium.WebDriver.MicrosoftWebDriver NuGet into my project? The only

Javascript firstChild returns EmptyTextNode in Edge

 ̄綄美尐妖づ 提交于 2019-12-11 11:12:53
问题 I've tested and in browsers(Opera, Chrome, FireFox) .firstChild function works correct, but in Edge it returns EmptyTextNode. document.getElementById('breadcrumbsCategoryContainer').firstChild Does there Edge has some alternatives, for this function? 回答1: It's not a function, it's a property. It sounds like the other browsers are removing whitespace prior to the first tag inside the container, and IE Edge isn't. If so, you can use firstElementChild to get the first child that's an element .

HTML5 Numeric input in MS Edge appends the placeholder text

爷,独闯天下 提交于 2019-12-11 09:45:32
问题 An invalid numeric input in ME Edge entry just get appended, <input type="number" placeholder="Enter Value" /> On entering non-numeric, or entering a minus appends with the placeholder text: How this can be avoided? 回答1: This is a known bug reported on the Edge issue tracker as "Incorrect behaviour of placeholder text in a text field 'number' when typing letters". 来源: https://stackoverflow.com/questions/41282429/html5-numeric-input-in-ms-edge-appends-the-placeholder-text