笔记:本人用的是python3.6.6 32位的版本,安装成功了pyautoit库及autoit库
本人的firefox版本为45.0可以安装firebug、fire path、及screengrap插件
直接代码如下:
import autoit
import unittest
import time
import sys
from datetime import datetime
from actions import Actions
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
sys.path.append(‘D:\jftest1_CG\test1’)
class Test_Newyyy_pctz_shfk (unittest.TestCase):
def test_pcLogin(self):
fp = webdriver.FirefoxProfile(r"C:\Users\mhf\AppData\Roaming\Mozilla\Firefox\Profiles\cv6txwo2.default")
driver = webdriver.Firefox(fp)
# driver &#