以下是一些有效的方法: 删除双引号:subprocess.call([ 'docker', 'exec', '7f34a9c1b78f', '/bin/bash', '-c', 'cd /opt/teradata/tdqgm/bin/ && ./support-archive.sh -q 6b171e7a-7071-4975-a3ac-000000000241' ])如果您不确定应该如何拆分命令以将其作为子进程方法的参数传递,shlex模块:https : //docs.python.org/2.7/library/shlex.html#shlex.split我正在使用 Webdriver(Chrome)。这是我的代码。driver.find_element_by_name('frmSearch').find_element_by_id('searchByInput91').click()这段代码让我点击下拉菜单并打开选项。之后,当我使用此代码时:from selenium.webdriver.support.ui import Selectselect = Select(driver.find_element_by_id('searchBy'))select.select_by_value('1').click()或者driver.find_element_by_id("searchBy").send_keys("two")错误信息总是出来。ElementNotVisibleException: Message: element not visible: Element is not currently visible and may not be manipulated (Session info: chrome=69.0.3497.81) (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64)我应该怎么办?
添加回答
举报
0/150
提交
取消