摘要:
1 # -*- coding:utf-8 -*- 2 3 from selenium import webdriver 4 from selenium.webdriver import ActionChains 5 6 driver = webdriver.Firefox() 7 8 driver.get(r'F:\电子书\selenium\Selenium Testing Tools Cookbook(中文)\demo\DragAndDrop.html') 9 10 source = driver.find_element_by_id('draggable') 阅读全文
摘要:
1 # -*- coding:utf-8 -*- 2 3 """ 4 在元素上执行双击操作 5 """ 6 7 from selenium import webdriver 8 from selenium.webdriver import ActionChains 9 import unittest10 11 class Actions_Element_Click(unittest.TestCase):12 def setUp(self): 13 self.driver = webdriver.Firefox()14 self.dri 阅读全文
摘要:
1 # -*- coding:utf-8 -*- 2 3 """ 4 在元素上执行双击操作 5 """ 6 7 from selenium import webdriver 8 from selenium.webdriver import ActionChains 9 10 driver = webdriver.Firefox()11 driver.get(r'F:\电子书\selenium\Selenium Testing Tools Cookbook(中文)\demo\DoubleClickDemo.html')1 阅读全文