Selenium Webdriver에서 Pycharm에서 Python으로 작업하고 있는데, Chrome과 Safari에서 각각 URL 열기를 위해 두 개의 메소드가 호출되는 간단한 클래스를 사용하고 있습니다."Python setup.py egg_info가 오류 코드 1로 실패했습니다."
from selenium import webdriver
class Automation():
def Safari(self):
driver = webdriver.Safari()
driver.get('https://bizplace.theentertainerme.com')
def Chrome(self):
driver = webdriver.Chrome('/usr/local/bin/chromedriver')
driver.get('https://bizplace.theentertainerme.com')
auto = Automation
auto.Safari(self)
이제 실행 한 후,이 같은 오류가 점점 오전 :
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/hh/bwg2n8w54cd7852cx91v21qm0000gp/T/pip-build-XVmlLB/public/setup.py", line 28, in <module>
setup_cfg_data = read_configuration(path)
File "/private/var/folders/hh/bwg2n8w54cd7852cx91v21qm0000gp/T/pip-build-XVmlLB/public/setup.py", line 23, in read_configuration
val = open(val).read()
IOError: [Errno 2] No such file or directory: './README.rst'
: 나는 명령 줄을 통해 자체 패키지를 설치하려고
auto.Safari(self)
NameError: name 'self' is not defined
, 그 이렇게 나에게 오류를 던지고
나를 도와 줄 수있는 사람이 있습니까?