Fix transfer confirmation (site changed)
This commit is contained in:
parent
ac8bd4e7ec
commit
1d56eb9f2f
1 changed files with 3 additions and 2 deletions
|
|
@ -167,9 +167,10 @@ class TransferConfirmPage(BasePage):
|
||||||
realpasswd += password[i]
|
realpasswd += password[i]
|
||||||
i += 1
|
i += 1
|
||||||
confirmform = None
|
confirmform = None
|
||||||
for form in self.document.xpath('//form'):
|
divform = self.document.xpath('//div[@id="transfer_panel"]')[0]
|
||||||
|
for form in divform.xpath('./form'):
|
||||||
try:
|
try:
|
||||||
if form.attrib['name'][0:4] == "j_id" and 'enctype' not in form.attrib:
|
if form.attrib['name'][0:4] == "j_id":
|
||||||
confirmform = form
|
confirmform = form
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue