[Python] Usingf SeleniumBase to wait for an image to become visible

Discussão em 'Python' iniciado por Stack, Agosto 16, 2025.

  1. Stack

    Stack Membro Participativo

    I have a table header element:

    <th><input type="image" src="../../..//images/icons/cell_state_header_icon.png" onclick="javascript:__doPostBack('ctl00$left_pane$gvSelectedFeatures','Sort$Status')" style="border-width:0px;"></th>


    and I am trying to "WAIT" for this element to display using the code below

    sb.wait_for_element_present("//*[/html/body/form/div[3]/div/div[3]/div/div[5]/div[2]/div/div[2]/table/tbody/tr[1]/th[1]/input=cell_state_header_icon.png]", timeout=None)


    however this does not seem to wait. Do I have the selector formatted correctly?

    Continue reading...

Compartilhe esta Página