[Python] I want to find a element in a bunch of urls but in second one the code get errors

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    while True:
    user = str(list.readline())
    if not user:
    break
    web.get(baseeitaa + user)
    # text bar
    textbar = web.find_element(By.XPATH, '//*[@id="column-center"]/div/div/div[4]/div/div[1]/div[7]/div[1]/div[1]')
    textbar.send_keys(newmsg)
    time.sleep(1)
    # send button
    sendb = web.find_element(By.XPATH, '//*[@id="column-center"]/div/div/div[4]/div/div[4]/button/div')
    sendb.click()
    time.sleep(5)


    this is my wile loop in code the code get a base url and then add a bunch off users id to it to make a user DM link then find the textbar and type a message and click on send it's work for first user and load the second user url but can't type the message for second user

    I get this errors

    selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <div class="c-ripple"></div> is not clickable at point (840, 652). Other element would receive the click: <div contenteditable="true" class="input-message-input scrollable scrollable-y i18n no-scrollbar" dir="auto" data-placeholder="پیام" style="transition-duration: 181ms; height: 37px;"></div>
    (Session info: chrome=137.0.7151.41)
    Stacktrace:
    GetHandleVerifier [0x0x7ff63e5991f5+2853845]
    GetHandleVerifier [0x0x7ff63e2f3ac0+79008]
    (No symbol) [0x0x7ff63e0b9bda]
    (No symbol) [0x0x7ff63e1180e9]
    (No symbol) [0x0x7ff63e115a8b]
    (No symbol) [0x0x7ff63e112ad1]
    (No symbol) [0x0x7ff63e1119d1]
    (No symbol) [0x0x7ff63e103004]
    (No symbol) [0x0x7ff63e1384ba]
    (No symbol) [0x0x7ff63e1028b6]
    (No symbol) [0x0x7ff63e1386d0]
    (No symbol) [0x0x7ff63e1608f5]
    (No symbol) [0x0x7ff63e138293]
    (No symbol) [0x0x7ff63e101061]
    (No symbol) [0x0x7ff63e101df3]
    GetHandleVerifier [0x0x7ff63e5c410d+3029741]
    GetHandleVerifier [0x0x7ff63e5be52d+3006221]
    GetHandleVerifier [0x0x7ff63e5dd5b2+3133330]
    GetHandleVerifier [0x0x7ff63e30d98e+185198]
    GetHandleVerifier [0x0x7ff63e314edf+215231]
    GetHandleVerifier [0x0x7ff63e2fc324+113924]
    GetHandleVerifier [0x0x7ff63e2fc4d9+114361]
    GetHandleVerifier [0x0x7ff63e2e3208+11240]
    BaseThreadInitThunk [0x0x7ff94f797374+20]
    RtlUserThreadStart [0x0x7ff94fabcc91+33]

    Continue reading...

Compartilhe esta Página