internet-explorer

Check with VBA if an element exists on the page

会有一股神秘感。 提交于 2020-02-02 15:15:05
问题 I have 15,000 products and I need to know if they're X, Y or Z. The code below checks on amazon to see if a product is a type of XYZ. God help me, it actually works. The only exception is when it searches a product no longer sold by Amazon. Then the element ID that I'm looking for which contains the product description that I'm searching doesn't exist on the page, and the code breaks on line text = document.getelementbyID("result_0").innertext with the error "Object variable or With block

Check with VBA if an element exists on the page

青春壹個敷衍的年華 提交于 2020-02-02 15:12:25
问题 I have 15,000 products and I need to know if they're X, Y or Z. The code below checks on amazon to see if a product is a type of XYZ. God help me, it actually works. The only exception is when it searches a product no longer sold by Amazon. Then the element ID that I'm looking for which contains the product description that I'm searching doesn't exist on the page, and the code breaks on line text = document.getelementbyID("result_0").innertext with the error "Object variable or With block

Check with VBA if an element exists on the page

天涯浪子 提交于 2020-02-02 15:10:31
问题 I have 15,000 products and I need to know if they're X, Y or Z. The code below checks on amazon to see if a product is a type of XYZ. God help me, it actually works. The only exception is when it searches a product no longer sold by Amazon. Then the element ID that I'm looking for which contains the product description that I'm searching doesn't exist on the page, and the code breaks on line text = document.getelementbyID("result_0").innertext with the error "Object variable or With block

Forcing to re-apply a style sheet in IE

只谈情不闲聊 提交于 2020-02-02 06:49:48
问题 Consider this HTML: <ul> <li>first</li> <li>second</li> <li>third</li> </ul> This CSS: li:first-child { background: yellow; } And this Javascript (jQuery): $("ul").append($("li:first-child")); http://fiddle.jshell.net/Xtuaf/ Apparently in Internet Explorer (8) :first-child breaks when the DOM has changed. I wrote a workaround for this problem in Javascript (doing styling there; z-index es in my case). It's an ugly quick fix that I want to get rid of. A better solution would be forcing to re

Why is indexOf not working in Internet Explorer?

倖福魔咒の 提交于 2020-02-02 03:05:26
问题 This function executes during the forms onSubmit, and works fine in Firefox and Chrome, but not in IE. I suspect it's indexOf, but I cannot seem to find a way to get it to work. function checkSuburbMatch(e) { var theSuburb = document.getElementById('suburb').value; var thePostcode = document.getElementById('postcode').value; var arrayNeedle = theSuburb + " (" + thePostcode + ")"; if(suburbs.indexOf(arrayNeedle) != -1) { alert("Suburb and Postcode match!"); return false; } else { alert("Suburb

Favicon request not showing in network tab of developer toolbars

天涯浪子 提交于 2020-01-31 06:23:26
问题 I've set up my ASP.NET MVC app with a favicon in the Content folder (instead of the root) along these lines. This works well, the favicon shows in all browsers. However when I installed ELMAH I started seeing 404 errors because apparently the favicon is still being requested at the root of my site! I would love to know why this is happening and who is doing this. Under the assumption my browser was causing this I opened up the developer toolbars, here's what I find: Google Chrome: Internet

How to completely disable all Internet Explorer Script Error dialogs

只愿长相守 提交于 2020-01-31 04:00:09
问题 Can someone please tell me how to disable Internet Explorer Script Error - says: An Error has occurred in the script on this page ... Error: Unspecified error ... Please don't Say to Go to Tools -> I.Options -> Advanced ...turning off debugging etc etc.. I have tried all that and this popup dialog still comes up. Some forums suggested turning off a service called: Machine Debug Manager (MDM), the problem is that I can't find this service running on my windows version. Why? System Windows XP

Internet Explorer not launched using selenium even though ignoreProtect mode settings are enabled

孤者浪人 提交于 2020-01-30 09:08:40
问题 Sample Code : from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities caps = DesiredCapabilities.INTERNETEXPLORER caps['ignoreProtectedModeSettings'] = True browser = webdriver.Ie(capabilities=caps) browser.get('http://www.google.com') Internet Explorer is not launched and I am facing the below error : SessionNotCreatedException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones.

Internet Explorer not launched using selenium even though ignoreProtect mode settings are enabled

好久不见. 提交于 2020-01-30 09:08:09
问题 Sample Code : from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities caps = DesiredCapabilities.INTERNETEXPLORER caps['ignoreProtectedModeSettings'] = True browser = webdriver.Ie(capabilities=caps) browser.get('http://www.google.com') Internet Explorer is not launched and I am facing the below error : SessionNotCreatedException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones.

Internet Explorer not launched using selenium even though ignoreProtect mode settings are enabled

試著忘記壹切 提交于 2020-01-30 09:07:06
问题 Sample Code : from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities caps = DesiredCapabilities.INTERNETEXPLORER caps['ignoreProtectedModeSettings'] = True browser = webdriver.Ie(capabilities=caps) browser.get('http://www.google.com') Internet Explorer is not launched and I am facing the below error : SessionNotCreatedException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones.