yuta-belmont / metamask_bf

38 stars 51 forks source link

Outdate #4

Open Rabbit0x0 opened 2 years ago

Rabbit0x0 commented 2 years ago

Ausnahme: NoSuchElementException Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/div/div[3]/div/div/div/div[2]/div/div[1]/div/div/div/div[2]/span[1]"} (Session info: chrome=102.0.5005.27) Stacktrace: Backtrace: Ordinal0 [0x00422733+2434867] Ordinal0 [0x003B07A1+1968033] Ordinal0 [0x0029C678+837240] Ordinal0 [0x002C94E0+1021152] Ordinal0 [0x002C977B+1021819] Ordinal0 [0x002F6592+1205650] Ordinal0 [0x002E4484+1131652] Ordinal0 [0x002F4892+1198226] Ordinal0 [0x002E4256+1131094] Ordinal0 [0x002BE840+976960] Ordinal0 [0x002BF736+980790] GetHandleVerifier [0x00693C72+2515426] GetHandleVerifier [0x0068702F+2463135] GetHandleVerifier [0x004C522A+620442] GetHandleVerifier [0x004C4016+615814] Ordinal0 [0x003B707B+1994875] Ordinal0 [0x003BB938+2013496] Ordinal0 [0x003BBA25+2013733] Ordinal0 [0x003C4DE1+2051553] BaseThreadInitThunk [0x754EFA29+25] RtlGetAppContainerNamedObjectPath [0x77207A7E+286] RtlGetAppContainerNamedObjectPath [0x77207A4E+238] File "C:\Users\admin\Desktop\metamask_bf-main\metamask_bf_v2.py", line 57, in driver.find_element(by = By.CSS_SELECTOR, value = '#app-content > div > div.main-container-wrapper > div > div > div > form > div.import-srpcontainer > div.actionable-message.actionable-message--danger.import-srpsrp-error.actionable-message--with-icon') #check to see if invalid message pops up

During handling of the above exception, another exception occurred:

File "C:\Users\admin\Desktop\metamask_bf-main\metamask_bf_v2.py", line 85, in elem = driver.find_element(by = By.XPATH, value = '/html/body/div[1]/div/div[3]/div/div/div/div[2]/div/div[1]/div/div/div/div[2]/span[1]') #find balance element

PandoricGalaxy commented 2 years ago

Same!

0xDefy commented 2 years ago

change the selector to "/html/body/div[1]/div/div[3]/div/div/div/div[2]/div/div[1]/div/div/div/div[2]/span[2]" (replace last span index from 1 to 2)