opera

Is there any way to make onbeforeunload work in Opera?

家住魔仙堡 提交于 2019-11-28 14:38:40
I know, that Opera doesnt support JS onbeforeunload message and will not support it. But is there any way to make it work somehow? Or maybe some jQuery plugins can make it work and let script know if window is going to close? I found only way to make onclick for every a tag, but this is not the complete solution. Upgrade to Opera 15. onbeforeunload is now supported in that version because they moved to the WebKit engine. It is still not supported in 12.x because that version and all prior versions are based on Presto. Brian It is not possible to use onbeforeunload with Opera. There is a cross

How do I stop Opera from caching a page?

血红的双手。 提交于 2019-11-28 12:39:50
I am trying to get Opera to re-request a page every time instead of just serving it from the cache. I'm sending the 'Cache-control: no-cache' and 'Pragma: no-cache' response headers but it seems as if Opera is just ignoring these headers. It works fine in other browsers - Chrome, IE, Firefox. How do I stop Opera from caching pages? What I want to be able to do is have Opera re-request a page when the user clicks the Back button on the browser. As a user, I absolutely detest pages that slow down my history navigation by forcing re-loads when I use the back button. (If the browser you use on a

Selenium WebDriver and Opera Driver

混江龙づ霸主 提交于 2019-11-28 12:10:25
I would like to run my Selenium WebDriver tests on Opera, but when I had a look at the Opera driver at Selenium HQ and GitHub page , it says: Opera Driver requires Opera 12.x and older versions Note that OperaDriver is only compatible with Presto-based Operas up until 12.16. Blink-based Operas (15 and onwards) are not supported. Opera is now up to version 22.0, so far beyond the maximum supported version of 12. So, my questions are: - If there is no Opera driver for Selenium, then how does one automate Opera tests? It seems strange to stop at version 12, even taking the underlying technology

Drive Opera with selenium python

风格不统一 提交于 2019-11-28 11:47:24
I added to my environment variable SELENIUM_SERVER_JAR = C:\selenium_drivers\selenium-server-standalone.jar Which I downloaded here http://selenium-release.storage.googleapis.com/index.html?path=2.46/ Python script: from selenium import webdriver webdriver.Opera() Output: 13:37:37.906 INFO - Launching a standalone Selenium Server 13:37:38.104 INFO - Java: Oracle Corporation 25.45-b02 13:37:38.104 INFO - OS: Windows 8 6.2 x86 13:37:38.132 INFO - v2.46.0, with Core v2.46.0. Built from revision 87c69e2 13:37:38.269 INFO - Driver class not found: com.opera.core.systems.OperaDriver 13:37:38.275

OperaDriver fails to start

安稳与你 提交于 2019-11-28 10:35:04
问题 There was an update last week for Opera browser. Since then it stopped working. It opens the browser and shows 'data:,' in the URL and throws webdriver exception. Is Opera 41 compatible with selenium 2.53.1? Exception thrown is: Result Message: Initialization method SDTestAutomation.HomePage_Tests.Init threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:64865/session timed out after

Preventing opera mouse gestures

僤鯓⒐⒋嵵緔 提交于 2019-11-28 09:23:24
问题 Is it possible to prevent opera mouse gestures for right button? I have web app on html5 and I decided to use right mouse button. But it doesnt work in opera, because opera has mouse gestures. event.preventDefault(); // it doesn't work May be anybody knows? Thank you. 回答1: It doesn't actually have anything to do with gestures specifically. Opera doesn't allow scripts to detect context menu events by default so you'd have to ask users to change their site preferences for your site to allow

Make CSS apply only for Opera 11?

为君一笑 提交于 2019-11-28 09:20:45
Is there a way to make some CSS rules apply only for Opera (11)? I love challenges! It took me some time but I finally found it: body {background:0} /* default */ @media not screen and (1) { body {background:red} /* OP 11 */ } @media not screen and (orientation) { body {background:green} /* for the earlier versions of Opera that pick the first media query's rule + chrome/safari */ } browsers tested: red: Opera 11 green: Opera 10 and 10.5 + WebKit browsers none: Opera 9.26 + Firefox 3.6 + IE9 It's related to the error-handling and also the fact that NOT negates the global result (WebKit

Bottom of custom font cut off in Opera and webkit

Deadly 提交于 2019-11-28 07:41:06
I'm using a custom font in a page I'm developing, Droid Sans, and at certain font sizes, the bottom is cut off, but only in Opera and webkit browsers. It's easy to reproduce on Google's own webfonts page looking for Droid Sans and showing the whole alphabet at 18px: http://www.google.com/webfonts It's especially clear for the lower case g . Is there some css trick / hack I can use to increase the line height / show the whole character or am I really limited to only certain sizes of the font? line-height and padding for example don't change anything and 20px font-size works fine and at the

How can I check if the browser support HTML5 file upload (FormData object)?

三世轮回 提交于 2019-11-28 04:55:51
How can I check if the browser support HTML5 file upload (FormData object)? var fd = new FormData(); Following the answer from this post , but the code does not return correct answer about the browser, window.onload = function() { if (!!window.FileReader) { alert('supported'); } else { alert('not supported'); } } Firefox - supported Chrome - supported Opera - supported Safari - not supported IE9 - not supported But the correct browser support should be, Firefox - supported Chrome - supported Opera - not supported Safari - supported IE9 - not supported I have tested the html 5 file upload on

How to use OperaChromiumDriver for opera version >12.X

拥有回忆 提交于 2019-11-28 04:45:15
问题 I understand that to work on opera versions > 12.X, Operachromiumdriver has been developed. At the same time I couldn't get this to work. I downloaded the windows version of operachromiumdriver.exe from https://github.com/operasoftware/operachromiumdriver/releases but to no avail. Can someone help me with this . Please tell me if my understanding is right. Thanks 回答1: I have found the solution running opera 25+ using OperaChromiumDriver.exe. Install Opera 25+ (I installed Opera 25) Download