2
Macに「pip install selenium」を使ってセレンをインストールしました。 function_tests.pyファイルも作成されました。 no module named selenium
を:それはコンテンツが、私はpython3 functional_tests.py
を使用してこのスクリプトを実行すると、私が取得モジュールをインストールしてもセレンというモジュールがありません
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://localhost:8000')
assert 'Django' in browser.title
ているのです。
try 'pip3 install selenium'。あなたのpipのバージョンはpython 2.7の可能性があります。 –
ありがとうございました! – FibonacciCoder