- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在尝试在 Snow Leopard 上使用 Python (2.6.1) 和 Selenium。作为 Python 的新手,我对自己做错的事情有点不知所措,因为这个完全相同的过程在我的 ubuntu 机器上运行得很好:
此错误信息:
E
======================================================================
ERROR: test_mytest_py (__main__.MytestPy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "mytest.py", line 8, in setUp
self.driver = webdriver.Firefox()
File "/Library/Python/2.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 45, in __init__
self.binary, timeout),
File "/Library/Python/2.6/site-packages/selenium/webdriver/firefox/extension_connection.py", line 46, in __init__
self.binary.launch_browser(self.profile)
File "/Library/Python/2.6/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 41, in launch_browser
self._start_from_profile_path(self.profile.path)
File "/Library/Python/2.6/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 66, in _start_from_profile_path
Popen([self._start_cmd, "-silent"], stdout=PIPE, stderr=PIPE).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
OSError: [Errno 2] No such file or directory
----------------------------------------------------------------------
Ran 1 test in 0.302s
FAILED (errors=1)
值得注意的是,当我运行“sudo easy_install -U selenium”时,我确实收到了警告:
$ sudo easy_install -U selenium
Searching for selenium
Reading http://pypi.python.org/simple/selenium/
Reading http://www.openqa.org/
Reading http://code.google.com/p/selenium/
Reading http://seleniumhq.org/
Best match: selenium 2.14.0
Downloading http://pypi.python.org/packages/source/s/selenium/selenium-2.14.0.tar.gz#md5=8de9ee26d699d699f846f14f9a184e60
Processing selenium-2.14.0.tar.gz
Running selenium-2.14.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yQVlpa/selenium-2.14.0/egg-dist-tmp-svoAjf
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'src_root'
warning: no files found matching 'docs/api/py/index.rst'
Adding selenium 2.14.0 to easy-install.pth file
Installed /Library/Python/2.6/site-packages/selenium-2.14.0-py2.6.egg
Processing dependencies for selenium
Finished processing dependencies for selenium
最佳答案
首先检查您的 Firefox 二进制文件位置。它是否放在这里:/Applications/Firefox.app/Contents/MacOS/firefox?
更多信息,请查看此页面:http://code.google.com/p/selenium/wiki/FirefoxDriver
关于python - Snow Leopard 上的 Selenium 和 Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8334706/
我使用 NSImageViews 的动画代理代理对其进行动画处理。在 Snow Leopard 上测试我的应用程序时,一切都按预期进行。然而,在 Leopard 上,所有动画都不起作用。此外,无论是否
我想知道创建一个上下文菜单项的最佳实践是什么,该菜单项可以在 leopard 和 Snow leopard 中工作,并与选择的文件和/或文件夹一起使用,将它们发送到 shellscript。 我知道上
我在 Snow Leopard 中开发了一个简单的应用程序。在 Snow Leopard 中编译的构建配置为:(10.5 | Release | i386)。 当我尝试使用上述配置编译它时,它在应用程
背景 我是一名正在为 Mac 构建应用程序的开发人员。我即将接触 Snow Leopard。到目前为止,我一直在 Leopard 上构建。我只做了大约一年的 Cocoa 开发,不是很认真。 我读了很多
我打开 ScriptEditor,点击 Record,点击文档中的一些图标,打开 System Preferences,然后点击 ScriptEditor 中的 stop 并且没有任何 react ,
有没有办法让文本位于鼠标光标下? 我正在尝试构建一个字典应用程序,当鼠标悬停在单词上时会弹出一个翻译面板。 我查看了accessibility api,它只能找到当前的ui元素,但不能找到当前的单词.
我当前正在使用 NSRunAlertPanel 来显示对话框。 它在 Leopard 和 Snow Leopard 中完美运行。在 Tiger 中,除了图标之外它也有效。 在 Leopard 和 Sn
我正在开发一个 Cocoa 应用程序,并且 NSToolbar 的外观得到了不同的结果。 我用于主窗口。 具体来说,我使用搜索字段作为最后一个 NSToolbarItem 并且,在 Snow Leop
我有基于 RubyCocoa 0.13.2 的应用程序。它适用于 10.5.8 及更早版本。当我尝试在 10.6 上运行它时,它在无限循环中崩溃。 10.6 内置了 0.13.2,但它与 10.5 的
我目前正在使我的 PyObjC 应用程序适用于 Snow Leopard,并且我成功地编译了一个独立的应用程序。我的问题是,鉴于这些错误,我如何使构建也与 Leopard 兼容? dyld: lazy
到目前为止,所有 Mac App Store 开发人员都知道所有应用程序都必须启用新的 OSX Lion Sandboxing。对于现有的应用程序,我们必须在 XCode 4.2 中启用它并设置数据迁
一切都在 10.5 上运行,但现在我的 PackageMaker 安装项目坏了。几天来我一直在与一个问题作斗争,要么 Snow Leopard (OS X 10.6.1) 破坏了 PackageMak
只是想知道是否有人成功地做到了这一点,以及使其发挥作用的步骤是什么。 提前致谢。 最佳答案 GrowlSafari 使用 mach_inject .. 它可以工作.. 我尝试过逆向工程,但我不明白为什
这是对 Controlling volume of running applications in Mac OS X via Objective-C 的跟进,其中解释了如何为 10.5 或更早版本设置
我在 Lion 上开发了一个 Cocoa 应用程序,现在我想添加与 Leopard 和 Snow Leopard 的兼容性。 我尝试将开发目标设置为 10.5,但在 Leopard 和 Snow Le
我正在尝试在 10.5 上部署一个在 Xcode 3.2.X (Snow Leopard) 上开发的 PyObjC(或 Cocoa-Python)应用程序,该应用程序在 10.6 系统上运行良好。 应
我刚刚在系统上安装了 Ubuntu 10.10 桌面以进行一些开发工作。我想在我的 MacBook 上运行 X 服务器环境而不是键盘跳动(Ubuntu 机器上的图形系统不是很好)。 在网上四处闲逛,我
我正在尝试在 Max OS-X 上使用 C++0x 和 Ogre 移植一个 C++ 项目,但我遇到了 OS-X 版本之间的可移植性问题。 我成功地使用 GCC 4.6.0 在 Mac OS-X 10.
较早的帖子提到,如果您以已注册的iOS开发人员身份登录,则https://developer.apple.com/downloads/index.action?name=Xcode的Xcode下载中列
我想更改 dmg 的默认图标,我喜欢使用默认图像音量图标的 Skype 或 Dropbox,但我无法通过查找器找到它。你知道我在哪里可以找到它吗? 感谢您的回答, 鲍里斯 最佳答案 好的,我在查找器中
我是一名优秀的程序员,十分优秀!