本文整理汇总了Python中splinter.Browser.wait_time方法的典型用法代码示例。如果您正苦于以下问题:Python Browser.wait_time方法的具体用法?Python Browser.wait_time怎么用?Python Browser.wait_time使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类splinter.Browser
的用法示例。
在下文中一共展示了Browser.wait_time方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tturma
# 需要导入模块: from splinter import Browser [as 别名]
# 或者: from splinter.Browser import wait_time [as 别名]
else:
tmat = "ctl00_Corpo_UCMatricula1_GridMatriculada_ctl"+str(n)+"_imgAlterarTurma"
return tmat
def tturma(n):
n=n+1
if n <10:
tturma = "ctl00_Corpo_UCAlterarTurma1_GridTurma_ctl0"+str(n)+"_Label4"
else:
tturma = "ctl00_Corpo_UCAlterarTurma1_GridTurma_ctl0"+str(n)+"_Label4"
return tturma
if __name__ == '__main__':
browser = Browser()
browser.wait_time = 0.3
print 'Entrando no Portal Academico.'
browser.visit(url)
print 'Checando usuario..'
while True:
try:
if browser.title.find("gina de Autentica")>0:
print 'Usuario Deslogado..'
logar()
print 'Selecionando Materia..'
buttonMat = browser.find_by_id(tmat(materia))
buttonMat.click()
print 'Checando Turma..'