Python : javascript error : missing) after argument list

Zach

아래의 python 스크립트를 실행할 때 "인수 목록 후"javascript error : missing) "오류 메시지가 나타납니다. "driver.execute_script (tab)"에서 스크립트가 실패합니다. 조정을 시도했지만 해결할 수 없습니다.

import selenium
from selenium import webdriver

driver = webdriver.Chrome()

driver.get('http://techstepacademy.com/training-ground')

list = ['http://yahoo.com', 'http://google.com','http://techstepacademy.com/training-ground']

for url in list:
    tab = "window.open(" + url + ",'_blank')"
    driver.execute_script(tab)
Zach

URL 주위에 따옴표를 추가하십시오.

 tab = "window.open(" + '"' + url + '"' + ",'_blank')"

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

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

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

Javascript Syntax error: missing ) after argument list: on col 61

SyntaxError : missing) after argument list php javascript

javascript-syntaxerror-missing-after-argument-list

JS : SyntaxError : missing) after argument list

SyntaxError : missing) after argument list function () {

webpack-dev-server : ERROR in missing) after argument list @ multi main

RethinkDB 오류 : SyntaxError : missing) after argument list

SyntaxError : missing) after argument list-무엇이 잘못 되었나요?

포착되지 않은 SyntaxError : missing,) after argument list

SyntaxError : missing) in argument list in fire bug

Error 1 error C3867: 'Command::getSecondWord': function call missing argument list; use '&' to create a pointer to member

fish : if error :`[: Missing argument at index 2`

error: missing argument for parameter #1 in call (swift)

"Uncaught SyntaxError : missing) after argument list"오류의 원인은 무엇입니까?

List elements as argument in decorator (Python)

Java 스크립트에서 오류를 찾을 수 없습니다. "Uncaught SyntaxError: missing ) after argument list"

Error lambda missing 1 required positional argument when using with QPushButton

Error in future_map: argument ".f" is missing, with no default

laravel Error Exception Missing argument 2 for Controller::destroy()

Getting Error - Warning: Missing argument 1 for DbQuery::__construct()

Javascript 행에서 "Missing ) after..."

Implementing a Skip List, syntax error : missing ')' before ';'

TypeError : function missing 1 required positional argument : 'path'Flask Python

Javascript Error: SyntaxError: missing ; before statement

reduce list of functions with keyword argument on dictionary in python

python: argument generated by a prior function error

Missing 1 potential argument

JS - constructingan array - SyntaxError: missing ] after element list

Swift: Updated and got error: "cannot invoke '!=' with argument list of type.."

TOP 리스트

  1. 1

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

  2. 2

    JSoup javax.net.ssl.SSLHandshakeException : <url>과 일치하는 주체 대체 DNS 이름이 없습니다.

  3. 3

    std :: regex의 일관성없는 동작

  4. 4

    Xcode10 유효성 검사 : 이미지에 투명성이 없지만 여전히 수락되지 않습니까?

  5. 5

    java.lang.UnsatisfiedLinkError : 지정된 모듈을 찾을 수 없습니다

  6. 6

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

  7. 7

    상황에 맞는 메뉴 색상

  8. 8

    SMTPException : 전송 연결에서 데이터를 읽을 수 없음 : net_io_connectionclosed

  9. 9

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

  10. 10

    Windows cmd를 통해 Anaconda 환경에서 Python 스크립트 실행

  11. 11

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

  12. 12

    C #에서 'System.DBNull'형식의 개체를 'System.String'형식으로 캐스팅 할 수 없습니다.

  13. 13

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

  14. 14

    Cassandra에서 버전이 지정된 계층의 효율적인 모델링

  15. 15

    복사 / 붙여 넣기 비활성화

  16. 16

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

  17. 17

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

  18. 18

    SQL Server-현명한 데이터 문제 받기

  19. 19

    Seaborn에서 축 제목 숨기기

  20. 20

    ArrayBufferLike의 typescript 정의의 깊은 의미

  21. 21

    Kubernetes Horizontal Pod Autoscaler (HPA) 테스트

뜨겁다태그

보관