ส่วนโค้ดที่แจ้ง
Code: Select all
from Tkinter import *
import tkFileDialog as filedialog
from selenium import webdriver
import alloy_all
Moderators: mindphp, ผู้ดูแลกระดาน
Code: Select all
from Tkinter import *
import tkFileDialog as filedialog
from selenium import webdriver
import alloy_all
Code: Select all
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('https://www.mindphp.com')
Code: Select all
C:\Users\Miki\Desktop\M057\Selenium\testSE\venv\Scripts\python.exe C:/Users/Miki/Desktop/M057/Selenium/testSE/test.py
Traceback (most recent call last):
File "C:/Users/Miki/Desktop/M057/Selenium/testSE/test.py", line 1, in <module>
from selenium import webdriver
ImportError: No module named selenium
Code: Select all
from selenium import webdriver
import alloy_all
เข้าใจว่าบรรทัดแรก เรียกใช้ฟังก์ชัน webdriver จากโมดูล selenium และบรรทัดสอง เรียกใช้โมดูล ที่ชื่อ alloy_all ขึ้นมาใช้งาน ค่ะthatsawan wrote:คำสั่งนี้เข้าใจว่าอะไรCode: Select all
from selenium import webdriver import alloy_all
ทำตามวิธีที่แนะนำแล้วค่ะ ก็ยังแจ้งว่าไม่มีโมดูmindphp wrote:Error แจ้งว่า ไม่รู้จัก โมดูล selenium
แสดงว่า ยังไม่ได้ ติดตั้ง โมดูล selenium
วิธีติดตั้งโมดูล
https://www.mindphp.com/forums/viewtopic ... 44&t=38007
การติดตั้ง โมดูล selenium บน Windows
https://www.mindphp.com/forums/viewtopic ... 85&t=44139
เสริมวิธีอัพเกรด pip
https://www.mindphp.com/forums/viewtopic ... 16&t=36755
Users browsing this forum: No registered users and 6 guests