firefox

SVG banding in chrome

北慕城南 提交于 2020-05-14 18:32:30
问题 I am using a svg file to produce a smooth gradient, when I noticed some serious banding issues in Google Chrome (20). Even stranger when I moved the chrome onto my cinema display the banding noticeably reduced, which makes this even weirder. Below is a single screen grab (no photoshop at all) taken when the website spanning my mbp's native screen (left) and the cinema display (right). As you can see the banding is much more severe on the left. Stranger still there is near zero banding in

How to change proxy on my webdriver multiple times on a single session?

风流意气都作罢 提交于 2020-05-14 15:56:53
问题 I am working on a bot. I want the bot to change the proxy of the webdriver every 50 searches. I have an API that requests the proxy and the socket, i store those variables and so far i have been using firefox profiles to set it up but that doesnt work very well. So given the fact that i already have a viable source of proxies and ports, can you tell me any way i can change the proxy without crashing the webdriver and doing it on a single session? Previous attempts: I tried setting up a

firefox and javascript redirection

余生颓废 提交于 2020-05-11 10:58:46
问题 I currently have a issue with firefox, where all other browser behave in the right way - even IE6! What I want to do is redirection to a subpage but leaving a history entry. There are 2 methods of rewriting the url as far as I know: window.location = "some.url"; - redirect to some.url with history entry window.location.replace("some.url"); - redirect without history entry So I have to use the first one and tested in the firebug console everthing works fine. Now there is the kind of strange

Triggering a custom event with attributes from a Firefox extension

让人想犯罪 __ 提交于 2020-05-11 07:38:18
问题 I have a Firefox extension that modifies the content of the page that the user is looking at. As part of that process the extension needs to trigger a custom event that the extension itself adds to the page source. I am having difficulties passing parameters to that custom event. What am I doing wrong? Script block inserted into the head of the page: document.addEventListener("show-my-overlay", EX_ShowOverlay, false, false, true); function EX_ShowOverlay(e) { alert('Parameter: ' + e.index); /

Selenium Close File Picker Dialog

瘦欲@ 提交于 2020-05-10 18:39:09
问题 We are using Selenium-Webdriver on Jenkins box (running linux), to drive Firefox for testing a fairly complex web app. The web app requires the uploading of a photo for testing, and we have achieved that by using sendkeys to the input file dialog. Unfortunately (perhaps due to the way the uploader works, it is plupload and uploads through XHR and not a FORM post) the File Picker Dialog never closes. While this was slightly annoying, in the past the tests still passed fine. Switching from

selenium自动化测试之checkbox和下拉框处理

眉间皱痕 提交于 2020-05-09 21:34:52
checkbox批量勾选 1.环境准备 下面代码用记事本编辑,保存为.html格式,并放在python项目同一目录下。(此段代码非原创,来源某课程) < html > < head > < meta http-equiv ="content-type" content ="text/html;charset=utf-8" /> < title > Checkbox </ title > < script type ="text/javascript" async =" " src ="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></ script > < link href ="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel ="stylesheet" /> < script src ="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js" ></ script > </ head > < body > < h3 > checkbox </ h3 > < div

selenium自动化测试之checkbox和下拉框处理

限于喜欢 提交于 2020-05-09 20:38:04
checkbox批量勾选 1.环境准备 下面代码用记事本编辑,保存为.html格式,并放在python项目同一目录下。(此段代码非原创,来源某课程) < html > < head > < meta http-equiv ="content-type" content ="text/html;charset=utf-8" /> < title > Checkbox </ title > < script type ="text/javascript" async =" " src ="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></ script > < link href ="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel ="stylesheet" /> < script src ="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js" ></ script > </ head > < body > < h3 > checkbox </ h3 > < div

Refresh favicon in bookmarks (Firefox)

不羁的心 提交于 2020-05-09 20:29:08
问题 Few days ago, I've changed the favicon of my website: it works well when I open the website: My website is also in my bookmarks, but it shows the old favicon: I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far. Thanks! 回答1: There is a solution that works on every browser: go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well) force refresh ( Ctrl + F5 for most browsers, or manually)

Refresh favicon in bookmarks (Firefox)

佐手、 提交于 2020-05-09 20:28:51
问题 Few days ago, I've changed the favicon of my website: it works well when I open the website: My website is also in my bookmarks, but it shows the old favicon: I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far. Thanks! 回答1: There is a solution that works on every browser: go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well) force refresh ( Ctrl + F5 for most browsers, or manually)

CSS: Flex Box not printing all pages on Firefox

对着背影说爱祢 提交于 2020-05-09 18:59:04
问题 I have a page with a structure similar to this: <main> <section> <article></article> <aside></aside> </section> </main> In the CSS, I include the following: main { display: flex; flex-direction: row; } The article is often many pages long. When I print or print preview, I find that it only gives me the first page or so. After some experimenting, I have got this solution: @media print { aside { display: none; } main { display: block; } } That is, by using display: block I can get all of the