Selenium Python 오류

JC

Gmail에 로그인 할 수있는 작은 테스트 프로그램을 만들려고합니다. 지금까지 프로그램은 크롬에서 웹 사이트를 열었지만 "이메일 입력"양식 상자에 실제로 아무것도 입력하지 못했습니다. 또한 내 질문에 대한 통찰력을 제공 할 수있는 셸 내에서 오류가 발생합니다.

드라이버 버전 : 2.40 Chrome 버전 : 67.0.3396.99

다음은 코드입니다.

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver= webdriver.Chrome('C:\chromedriver_win32\chromedriver.exe')
driver.get("http://mail.google.com")
emailid=driver.find_element_by_name("identifier")
emailid.send_keys("samplekeys")

다음은 오류입니다.

Traceback (most recent call last):
  File "C:\gmail.py", line 7, in <module>
    driver.get("http://mail.google.com")
  File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 332, in get
    self.execute(Command.GET, {'url': url})
  File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 320, in execute
    self.error_handler.check_response(response)
  File "C:\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: missing or invalid 'entry.level'
  (Session info: chrome=67.0.3396.99)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 10.0.17134 x86_64)

어떤 도움이라도 대단히 감사하겠습니다!

크루즈

이 시도 :

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC 
from selenium.webdriver.common.action_chains import ActionChains

browser = webdriver.Chrome(executable_path = r'C:/chromedriver_win32/chromedriver.exe')
browser.get("http://mail.google.com")  

wait = WebDriverWait(browser, 10)

user_name = wait.until(EC.element_to_be_clickable((By.ID, 'identifierId')))
user_name.click()
user_name.send_keys("samplekeys")

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

Python Selenium의 StaleElementReferenceException 오류

Python 2.7, Selenium 및 PhantomJS 오류

Windows의 Python Selenium Webdriver 오류

Python Selenium XPath Traceback 오류

오류 : Selenium Python의 ElementNotInteractableException

Python Selenium 가져 오기 오류

Selenium Python browser = webdriver.Firefox () 오류

Python Selenium 선행 :: 요소 오류 찾기

selenium.common.exceptions.ElementNotVisibleException : Python 오류

Python TKinter, Selenium 및 threading throwing driver not defined 오류

Python + Selenium 스크랩 오류 : ElementNotVisibleException

Selenium Google 번역 오류가 있는 Python

Selenium 및 python의 Bluetooth 어댑터 오류

Selenium Webdriver - 오류

Java Selenium InvalidElementStateException 오류

Selenium @test (dependsOnMethods) 오류

Python Selenium을 사용하면 "selenium.common.exceptions.StaleElementReferenceException" 오류가 발생합니다.

Python Selenium-try except에서 잘못된 구문 오류

Python Selenium chromedriver OSError : [Errno 8] Exec 형식 오류

Selenium Python은 NoSuchElementException 오류를 건너 뜁니다.

Python Selenium JavaScript 오류 : shape = rectangle은 지원되지 않습니다.

Python Selenium 오류 요소를 클릭 할 수 없습니다.

Python + Selenium 첫로드시 메모리 부족 오류

Python : 새 브라우저 개체의 selenium-chromedriver 오류

Selenium이있는 Python : 요소 오류를 찾을 수 없음

Python Selenium : 부실 요소 참조 예외 오류

Python Selenium ChromeDriver 오류 메시지 : EGL_NOT_INITIALIZED

Python Selenium의 xpath에서 변수 사용 오류

Selenium Python은 NoSuchElementException 오류를 건너 뜁니다.

TOP 리스트

  1. 1

    PrematureCloseException : 연결이 너무 일찍 닫혔습니다.

  2. 2

    MDRotatingPieChart를 회전하면 각도 대신 x / y 위치가 변경됩니다.

  3. 3

    c # 웹 사이트에서 텍스트를 복사하는 방법 (소스 코드 아님)

  4. 4

    jfreecharts에서 x 및 y 축 선을 조정하는 방법

  5. 5

    ArrayBufferLike의 typescript 정의의 깊은 의미

  6. 6

    Ionic 2 로더가 적시에 표시되지 않음

  7. 7

    복사 / 붙여 넣기 비활성화

  8. 8

    Google Play Console에서 '예기치 않은 오류가 발생했습니다. 나중에 다시 시도해주세요. (7100000)'오류를 수정하는 방법은 무엇입니까?

  9. 9

    정점 셰이더에서 카메라에서 개체까지의 XY 거리

  10. 10

    QT Designer를 사용하여 GUI에 이미지 삽입

  11. 11

    java Apache POI Word 기존 테이블 셀 스타일 및 서식이있는 행 삽입

  12. 12

    Kubernetes Horizontal Pod Autoscaler (HPA) 테스트

  13. 13

    Android Kotlin은 다른 활동에서 함수를 호출합니다.

  14. 14

    C # HttpWebRequest 기본 연결이 닫혔습니다. 전송시 예기치 않은 오류가 발생했습니다.

  15. 15

    어떻게 같은 CustomInfoWindow 다른 이벤트를 할 수 있습니다

  16. 16

    rclone으로 원격 디렉토리의 모든 파일을 삭제하는 방법은 무엇입니까?

  17. 17

    dataSnapShot.getValue () 반환 데이터베이스에 그겁니다 데이터 종료 널 (null)

  18. 18

    ORA-12557 TNS : 프로토콜 어댑터를로드 할 수 없습니다

  19. 19

    JNDI를 사용하여 Spring Boot에서 다중 데이터 소스 구성

  20. 20

    다음 컨트롤이 추가되었지만 사용할 수 없습니다.

  21. 21

    C # Asp.net 웹 API-JSON / XML 변환기 API 만들기

뜨겁다태그

보관