解決Selenium包成EXE檔後網頁打得開但指令卻不做事 == 如題我發現我在VScode執行時正常運作的程式在打包後網頁打得開但沒反應,爾後我在其他人的電腦上的VScode執行發現報錯,他表示 ```button = driver.find_element_by_class_name("quiz_button")``` 不能用了,所以我覺得我的打包問題可能跟這個有關(雖然不知道為何在我的電腦上的VScode可以正常執行)。 結果還真的是這個問題的關係(改後我的EXE檔能動了),所以請大家如果有遇到這個情況可去[這裡](https://stackoverflow.com/questions/69875125/find-element-by-commands-are-deprecated-in-selenium) 這邊再提個重點,```from selenium.webdriver.common.by import By```這行要記得用,不然By那邊會報錯
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up