mozilla

Which Firefox version is compatible with Selenium 2.53.0?

匿名 (未验证) 提交于 2019-12-03 01:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Which Firefox version is compatible with Selenium 2.53.0? I tried Firefox 45.0 and I am getting this exception: org . openqa . selenium . WebDriverException : Failed to connect to binary FirefoxBinary ( /Applications/ Firefox . app / Contents / MacOS / firefox - bin ) on port 7055 ; process output follows : foreignInstall ":false," hasBinaryComponents ":false," strictCompatibility ":false," l ocales ":[]," targetApplications ":[{" id ":" { ec8030f7 - c20a - 464f - 9b0e-13a3a9e97384 } "," minVersion ":" 45.0 "," maxVersion ":" 45. *

Using the default firefox profile with selenium webdriver in python

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know similar questions have been asked before, but I've tried many times and it still doesn't work for me. I only have a default profile in firefox (called c1r3g2wi.default) and no other profiles. I want my firefox browser to start with this profile when I launch it using the selenium webdriver. How do I do this in Python? I did this: fp = webdriver.FirefoxProfile('C:\Users\admin\AppData\Roaming\Mozilla\Firefox\Profiles\c1r3g2wi.default') browser = webdriver.Firefox(fp) But I got an error: WindowsError: [Error 123] The filename, directory

Is there a way to get element by XPath using JavaScript in Selenium WebDriver?

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am looking for something like: getElementByXpath(//html[1]/body[1]/div[1]).innerHTML I need to get the innerHTML of elements using JS (to use that in Selenium WebDriver/Java, since WebDriver can't find it itself), but how? I could use ID attribute, but not all elements have ID attribute. [FIXED] I am using jsoup to get it done in Java. That works for my needs. Thanks for the answers. :) 回答1: You can use document.evaluate : Evaluates an XPath expression string and returns a result of the specified type if possible. It is w3-standardized and

firefox proxy settings via command line

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How do I change Firefox Proxy settings via command line on windows xp/2k? Thanks 回答1: The proxy setting is stored in the user's prefs.js file in their Firefox profile. The path to the Firefox profile directory and the file is: % APPDATA % \Mozilla\Firefox\Profiles\7b9ja6xv . default \prefs . js where " 7b9ja6xv " is a random string. However, the directory of the default profile always ends in ".default". Most of the time there will be only one profile anyway. Setting you are after are named " network.proxy.http " and " network

no swt-mozilla-gtk-4332 in java.library.path

匿名 (未验证) 提交于 2019-12-03 01:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: (See update at bottom for new information.) I have a Java SWT application that includes an integrated browser. Everything works fine on Windows and on CENTOS 6.5. I was asked to get the application to work on a new computer to which I installed CENTOS 7. I keep receiving the no swt-mozilla-gtk-4332 in java.library.path error message. I am aware of the various pages that talk on this issue. For instance: StackOverflow 10165693 , 6518568 , 7130980 Jazz.net , Eclipse.org I am using Firefox 24.8.0. That came with CENTOS 7. I just updated all the

What is the best online javascript/css/html/xhtml/dom reference? [closed]

匿名 (未验证) 提交于 2019-12-03 01:32:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a front-end developer and I was looking for opinions about the best all-round online documentation for javascript/css/html/xhtml/dom/browser quirks and support. I've tried Sitepoint, Quirksmode, W3Schools but all of these seem to be lacking in certain aspects and have been using them in combination. 回答1: I like gotapi.com (Update 2: Site is apparently offline -- Use another resource such as MDN ) Update: the original answer was from 2008 -- today I would say to check out Mozilla Developer Network (as many others have also said). 回答2: I

Exception in thread “main” org.eclipse.swt.SWTError: XPCOM error 0x80004005 in swt.mozilla

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: following my SWT code which use Mozilla browser but it gives me an error xpcomm error 0x80004005. import java.awt.GridLayout; import java.io.File; import org.eclipse.swt.SWT; import org.eclipse.swt.browser.Browser; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.internal.dnd.SwtUtil

How can I create custom scrollbar for Mozilla Firefox with CSS? [duplicate]

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This question already has an answer here: Custom CSS Scrollbar for Firefox 5 answers Is it possible to create a custom scrollbar for Mozilla Firefox with CSS? I found some articles which tells it was supported in past (e.g. http://codemug.com/html/custom-scrollbars-using-css/ ). Are there more examples? 回答1: On this side the firefox scollbar is cancelled. http://codemug.com/html/custom-scrollbars-using-css/ But look here: http://jscrollpane.kelvinluck.com http://hesido.com/web.php?page=customscrollbar http://script-tutorials.com

Creating a SWT.MOZILLA browser on Windows 64 bit and SWT 4.3

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create an SWT Browser widget of the SWT.MOZILLA type under windows 8 64Bit with SWT 4.3 64Bit. According to this , SWT 4.3 should support 64 Bit version on XULRunner 10.x or 24.x So, I have downloaded both the 10.x and 24.x 64 versions from here and unzipped under c:\xulrunner10 and c:\xulrunner24 respectively. If I start my java app pointing to xulrunner10 (using the VM argument -Dorg.eclipse.swt.browser.XULRunnerPath=C:\xulrunner10 ) it works, however if I try with xulrunner24 (using the VM argument -Dorg.eclipse.swt.browser

How to detect if user it trying to open a link in a new tab?

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm writing a website in which all content is stored in the JavaScript environment, so it should be possible to navigate between "pages" without additional HTTP requests. I want to preserve the user's intent with respect to how links are opened, though. If a Mac user apple+clicks a link, for example, it should be opened in a new tab. But if the user wants to open a link in the current window, I want to avoid making a new HTTP request, and just use DOM manipulation to show the new content. Here's what I tried ( JSFiddle ): Yahoo! document