出于某种原因,我无法在Sublime Text 3中输入像áå,ä这样的重音字符.相反,我只得到以下输出'a°a,¨a.当我按下它们的键而不是允许我输入带重音的字符时,帽子符号会被输入,顺便说一句,我正在使用冰岛键盘.
Sublime text build 3065,Ubuntu 64 bit.在Ubuntu 14.10上运行.
在Ubuntu 14.04上没有出现此问题.
使用Python 2.7.5,python模块selenium(2.41.0)和chromedriver(2.9).
当Chrome启动时,它会在黄色弹出栏中显示一条消息:"您正在使用不受支持的命令行标记:--ignore-certificate-errors.稳定性和安全性将受到影响." 这个简单的例子再现了这个问题.
from selenium import webdriver
browser = webdriver.Chrome()
browser.get("http://google.com/")
Run Code Online (Sandbox Code Playgroud)
如何在python selenium中删除此命令行标志?
最近我发布了这个作为如何使用Selenium Safari Webdriver的问题的可能答案.我的答案的问题是当我运行python脚本时,从jar文件中记录出现在终端中,我想禁用它.可以通过python完成吗?
在Mac OSX上使用Python 2.7.5和python模块selenium(2.41.0).
此示例打开Safari浏览器并执行我的出价:
# -*- coding: utf-8 -*-
print '''
Python Selenium Safari Example
'''
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import os
# path to selenium server standalone jar, downloaded here:
# http://docs.seleniumhq.org/download/
# or a direct url:
# http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar
os.environ["SELENIUM_SERVER_JAR"] = "selenium-server-standalone-2.41.0.jar"
# note: I've put this jar file in the same folder as this python file
browser = webdriver.Safari()
# makes the browser wait if it can't find an …Run Code Online (Sandbox Code Playgroud)