<?xml version="1.0" encoding="UTF-8"?>
<LoginDate>
<Login001>
<URL>http://192.168.90.128/tinyshop/</URL>
<name1>222@qq.com</name1>
<password1>111111</password1>
<!-- 实际的类型-->
<type>xpath</type>
<!--实际 -->
<value1>.//*[@id='he...
#-*- coding:UTF-8 -*- # 解码方式
__author__ = 'poptest'
import time,unittest
from selenium import webdriver
class CommomFunction(object):
def browserInit(self,revUrl):
global driver
driver = webdriver.Firefox()
driver.get(revUrl)
driver.maximize_window()
...
#-*- coding:utf-8 -*-
__author__ = 'poptest'
#考察句柄,Alert弹框
from selenium import webdriver
import time
class Test12306Alert():
def testBrowser12306(self):
dr= webdriver.Firefox()
#窗口最大化
dr.maximize_window()
#输入12306网址
dr.get("http://www.1230...
#-*- coding:UTF-8 -*- # 解码方式
__author__ = 'poptest'
import time,unittest
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
class TestAddressModel(unittest.TestCase):
def setUp(self):
global dr
dr = webdriver.Firefox(...
#-*- coding:UTF-8 -*-
import time,unittest
from selenium import webdriver
class TestRegistModel(unittest.TestCase):
def setUp(self):
global dr
dr = webdriver.Firefox()
dr.get("http://192.168.90.128/tinyshop/")
time.sleep(2)
dr.maximize_win...
#-*- coding:UTF-8 -*-
import time
from selenium import webdriver
import unittest
import traceback
class TestLoginModle(unittest.TestCase):
def setUp(self):
global driver
driver = webdriver.Firefox()
driver.get("http://192.168.90.128/tinyshop/")
driv...