internet-explorer

python, COM and multithreading issue

拈花ヽ惹草 提交于 2021-02-19 01:01:07
问题 I'm trying to take a look at IE's DOM from a separate thread that dispatched IE, and for some properties I'm getting a "no such interface supported" error. I managed to reduce the problem to this script: import threading, time import pythoncom from win32com.client import Dispatch, gencache gencache.EnsureModule('{3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}', 0, 4, 0) # MSHTML def main(): pythoncom.CoInitializeEx(0) ie = Dispatch('InternetExplorer.Application') ie.Visible = True ie.Navigate('http:/

Selenium test in Internet Explorer in InPrivate mode

强颜欢笑 提交于 2021-02-18 22:11:12
问题 Is there any way how to run Selenium automation test in Internet Explorer 9 in InPrivate mode with IEDriverServer? I need to test 2 (two) testcases: 1. browser is closed. Open one window of IE InPrivate mode. Run test. 2. browser is opened in normal mode. Open new window of IE InPrivate mode. Run test. How should JAVA code look for this tests? Thank you 回答1: public void openBrowserInPrivacyMode(boolean isBrowserActive) { System.setProperty("webdriver.ie.driver", "path/to/IEDriverServer_x32

Own image as slider thumb on range. How to style on css

大憨熊 提交于 2021-02-18 21:11:49
问题 How do I set an image as a thumb slider on range input type with css? It doesn't work in Internet Explorer. Chrome and Firefox is ok, but on IE my image is hidden or something? I use ::-ms-thumb , and try to set image as background. how can I fix it with CSS? input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; background-image: url('../images/slider.png'); opacity: 1; width: 40px; height: 19px; position: relative; top: 0px; z-index: 99; } ::-moz-range-thumb{ background-image

Own image as slider thumb on range. How to style on css

筅森魡賤 提交于 2021-02-18 21:10:52
问题 How do I set an image as a thumb slider on range input type with css? It doesn't work in Internet Explorer. Chrome and Firefox is ok, but on IE my image is hidden or something? I use ::-ms-thumb , and try to set image as background. how can I fix it with CSS? input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; background-image: url('../images/slider.png'); opacity: 1; width: 40px; height: 19px; position: relative; top: 0px; z-index: 99; } ::-moz-range-thumb{ background-image

Own image as slider thumb on range. How to style on css

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-18 21:10:07
问题 How do I set an image as a thumb slider on range input type with css? It doesn't work in Internet Explorer. Chrome and Firefox is ok, but on IE my image is hidden or something? I use ::-ms-thumb , and try to set image as background. how can I fix it with CSS? input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; background-image: url('../images/slider.png'); opacity: 1; width: 40px; height: 19px; position: relative; top: 0px; z-index: 99; } ::-moz-range-thumb{ background-image

Position sticky not working in IE or Safari

这一生的挚爱 提交于 2021-02-18 18:40:32
问题 I am creating a card in CSS. It works perfectly fine in Chrome but doesn't work in IE/Safari browser. #nb { position: sticky; width: 280px; height: 450px; margin: 0 auto; overflow: hidden; text-align: center; } #nb:hover:after { background: #f79031!important; } #nb::after { content: ''; position: absolute; width: 940%; height: 100%; top: 170px; right: -502%; background: #ffffff; transform-origin: 54% 0; transform: rotate(129deg); z-index: -1; } #nb h5{text-align: left; line-height: 25px;

How to close an Internet Explorer instance inside an Excel VBA

本小妞迷上赌 提交于 2021-02-18 07:32:50
问题 I'm running an Excel VBA macro which opens a IE instance, extracts data from a URL and then is supposed to close the instance again. Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") Set IE = GetObject("new:{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") ' Do stuff... ' Clean up IE.Quit Set IE = Nothing I looked up that method and it is supposed to close the IE instance. However that does not work for me. The task manager confirms that the iexplorer.exe process is still running.

How to close an Internet Explorer instance inside an Excel VBA

烂漫一生 提交于 2021-02-18 07:32:33
问题 I'm running an Excel VBA macro which opens a IE instance, extracts data from a URL and then is supposed to close the instance again. Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") Set IE = GetObject("new:{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") ' Do stuff... ' Clean up IE.Quit Set IE = Nothing I looked up that method and it is supposed to close the IE instance. However that does not work for me. The task manager confirms that the iexplorer.exe process is still running.

<pre> tag loses line breaks when setting innerHTML in IE

拥有回忆 提交于 2021-02-16 06:01:15
问题 I'm using Prototype's PeriodicalUpdater to update a div with the results of an ajax call. As I understand it, the div is updated by setting its innerHTML. The div is wrapped in a <pre> tag. In Firefox, the <pre> formatting works as expected, but in IE, the text all ends up on one line. Here's some sample code found here which illustrates the problem. In Firefox, abc is on different line than def ; in IE it's on the same line. <html> <head> <title>IE preformatted text sucks</title> </head>

Submitting form and reading results using Excel VBA and InternetExplorer

家住魔仙堡 提交于 2021-02-11 17:52:49
问题 I'm submitting a form using Excel VBA while using an InternetExplorer object. Once submitted, I can see the URL change on screen. However, when I attempt to output the URL (to confirm that it changed and the code knows it), I get the same URL. In both debug statements below, they output the same URL. Code: Dim username As String Dim password As String Dim server_ip As String username = "aaa" password = "bbb" server_ip = "ip_here" Dim ie As New InternetExplorer Dim doc As HTMLDocument Set doc