Exemple #1
0
class Shangpinxiangqing():
    def __init__(self):
        self.driver = Login().driver

    def shangpinxiangqing(self, a):
        self.driver.find_element_by_id("number").clear()
        self.driver.find_element_by_id("number").send_keys(a)
        self.driver.find_element_by_class_name("btn_pink_138x32").click()
Exemple #2
0
class Sousuo():
    def __init__(self):
        self.driver = Login().driver
    def sousuo(self,a):

        self.driver.find_element_by_name("keywords").clear()
        self.driver.find_element_by_name("keywords").send_keys(a)
        self.driver.find_element_by_class_name("fm_hd_btm_shbx_bttn").click()
Exemple #3
0
class Genrenxinxi():
    def __init__(self):
        self.driver = Login().driver

    def gerenxinxi(self):
        self.driver.find_element_by_xpath(
            "/html/body/div[1]/div[1]/div/div/a[1]").click()

    def zuixindingdan(self):
        self.driver.find_element_by_xpath(
            "/html/body/div[5]/div[1]/div/div/div/div/a[3]").click()
        a = self.driver.find_element_by_class_name("f6").text
        return a