Positioning elements split interception

 

 

 Here direct access to information elements, then change will also bring new go so we intercept

I in Range for (. 1, the rowCount): 
A = obtener_elemeentos ( 'Project', "designated item",. 1)
B = obtener_elemeentos ( 'Project', "designated item", 2)
Tables login.browser.find_element = ( a, I B%) .text
  # [0] indicates the front section, taken only take
Table tables.split = ( 'new new') [0]
Print (Table)
also may be used to multiplex
such as my element requires that the element count
if isElementExist(a,b.split("//tbody/tr[%s]//p")[0]):
rowCount = len(login.browser.find_elements(a, b.split("[%s]//p")[0]))
if rowCount == 1:
rowCount=rowCount+1
for i in range(1, rowCount):
a = obtener_elemeentos('project', "指定的招标项目", 1)
b = obtener_elemeentos('project', "指定的招标项目", 2)
te=login.browser.find_element(a,b%i).text
if te == name:
login.browser.find_element(element_type, elements%i).click()
break
else:

Guess you like

Origin www.cnblogs.com/test-hui/p/12052852.html