????2??????????
??????λ???
????by id?? name?? class_name?? tag_name?? css_selector?? xpath?? link_text?? partial_link_text
?????????? ?? id??name?? css_selector?? xpath?? link_text
???????????
??????λ??????
????????????
????a <frame>
????f1 = find_element_by_css_selector(frame)
????switch_to.frame(f1)
????b <select>
????s1 = find_element_by_css_selector(select)
????ss1 = Select(s1)
????ss1.select_by_index(0)
????ss1.select_by_value("???2?")
????c ???????? utf-8
????d ????????? sleep(5)
?????????????
????unittest
???????????????
????unittest.TestCase
???????????
????????
??????????????
???????? assertEqual(??????? ??????? ???????)
???????в??? test_????????
????unittest.TestSuite
????addTest(xxx("test_batch_login"))
???????????????????????????
????unittest.TextTestRunner
????run(suite)
??????д?????????????????
????test_runner  test_suite  test_case
??????????????    ???????     ????????
??????黯????
?????????????????
????1. ??д????????????????????????
????2. ???????????????????????
????????????
????????????????????? webdriver.Firefox()
????self.common = RanzhiCommon(self.browser?? self.base_url)
????????????????
???????csv???????????????в???
???????MySQL???????浽MySQL??
????1. ????????????
????# coding="utf-8"
??????csv???????? encoding='utf-8'
????csv.reader(open("xxx.csv"?? "r"?? -1?? encoding="utf-8")
????2. ?????????
????3. ???·??????????????????????????·??????????
???????WebDriver
????· ????????????????в?????????????????????
????· ???????????????????????????????????????????????WebDriver??
????· ????????????????????????????ù??????????á?