Not able to click element using Selenium Webdriver



  • I am having this screen where i try to hover it
    enter image description here

    after hovering the screen becomes drop down

    enter image description here

    So i am not able to click on the screen using selenium webdriver.

    <td align="left" style="vertical-align: top;">
    <div id="gwt-debug-ddPolicy" class="relativePositionNegative12">
    <table cellspacing="0" cellpadding="0" class="clickable GP432FWBBU">
     <tbody>
      <tr>
       <td align="left" style="vertical-align: top;">
         <div class="GP432FWBOT GP432FWBDU GP432FWBAU GP432FWBDD" aria-hidden="false" id="gwt-debug-ddPolicy-label" style="">linda</div>
        </td>
       <td align="left" style="vertical-align: top;">
            <select class="GP432FWBOT GP432FWBMT GP432FWBAU" style="display: none;" aria-hidden="true" id="ddPolicy">
               <option value="linda">linda</option>
               <option value="Gaurav">Gaurav</option>
               <option value="*Aung">*Aung</option>
               <option value="Aakash">Aakash</option>
            </select>
        </td>
       <td align="left" style="vertical-align: top;">
       </td>
       </tr>
     </tbody>
    </table>
    </div>
    </td>
    

    I am getting error for other element get position.



  • Try sending an empty key to the element in order to focus on it as well as set get visible over hidden property. For example:

    hidden_element.send_keys "" // This will make element visible first.
    hidden_element.click() // Pretty simple job when element is visible.
    


Suggested Topics