• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 분석

  • 해결 여부

    미해결

셀레늄 사용시 W3C 에러 문제

20.11.26 13:59 작성 조회수 136

0

안녕하세요, 알려주신 강의를 잘 활용하고 있는 수강생입니다.

최근 셀레늄을 사용하여 웹사이트 크롤링을 시도하는 과정에 아래와 같은 문제가 발생하고 있는데요,

"Cannot call non W3C standard command while in W3C mode"

<x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'</x-row><x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">System info: host: '761e5aa9c257', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-1028-gc</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">p', java.version: '1.8.0_265'</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Driver info: driver.version: unknown</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"></x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">Error: Summary: UnknownCommand</x-row><x-row line-overflow="true" style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> Detail: The requested resource could not be found, or a request was received using an HTTP method that is </x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222">not supported by the mapped resource.</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> class: org.openqa.selenium.UnsupportedCommandException</x-row><x-row style="display:block;height:var(--hterm-charsize-height);line-height:var(--hterm-charsize-height);visibility:visible;color:#ffffff;font-family:'courier new', monospace;font-size:13px;font-variant-ligatures:none;font-weight:400;white-space:pre;caret-color:rgba(0, 0, 0, 0);background-color:#222222"> Further Details: run errorDetails method</x-row>

혹시 이 문제에 대해 해결책을 알 수 있을까요?

답변 1

답변을 작성해보세요.

0

안녕하세요. Steady

답변이 늦어서 죄송합니다.

저도 말씀해주신 에러는 저도 처음보는데요.

구글링을 해보니. Rselenium은 아니지만, webdrivier의 option문제인 것 같다는 말이 있습니다.

https://stackoverflow.com/questions/56111529/cannot-call-non-w3c-standard-command-while-in-w3c-mode-seleniumwebdrivererr

크롤링하고자하는 사이트와 작성하신 코드달아주시면 저도 살펴보도록 하겠습니다.