Getting Element is not interactable although it clicks the dropdown

71 views
Skip to first unread message

sandy

unread,
Feb 11, 2021, 12:31:41 AM2/11/21
to Selenium Users

Getting Element is not interactable although it clicks the dropdown 
Can some one pls help
Below is the html:
<div id="meetingDatesForm:meetingDatesTable:6:j_idt310" class="ui-selectonemenu ui-widget ui-state-default ui-corner-all widthLarge" role="combobox" aria-haspopup="true" aria-expanded="true" aria-owns="meetingDatesForm:meetingDatesTable:6:j_idt310_items"><div class="ui-helper-hidden-accessible"><input id="meetingDatesForm:meetingDatesTable:6:j_idt310_focus" name="meetingDatesForm:meetingDatesTable:6:j_idt310_focus" type="text" autocomplete="off" aria-expanded="true" aria-autocomplete="list" aria-activedescendant="meetingDatesForm:meetingDatesTable:6:j_idt310_2" aria-describedby="meetingDatesForm:meetingDatesTable:6:j_idt310_2" aria-disabled="false"></div>

<div class="ui-helper-hidden-accessible"><select id="meetingDatesForm:meetingDatesTable:6:j_idt310_input" name="meetingDatesForm:meetingDatesTable:6:j_idt310_input" tabindex="-1" aria-hidden="true"><option value="" data-escape="true">Select one...</option><option value="3" data-escape="true">Board</option><option value="140" selected="selected" data-escape="true">Commission S</option><option value="2" data-escape="true">Commission I</option><option value="219" data-escape="true">Commission F</option></select></div><label id="meetingDatesForm:meetingDatesTable:6:j_idt310_label" class="ui-selectonemenu-label ui-inputfield ui-corner-all">Commission S</label>

//on selecting the dropdown button the below code gets hightlighted
<div class="ui-selectonemenu-trigger ui-state-default ui-corner-right"><span class="ui-icon ui-icon-triangle-1-s ui-c"></span></div></div></div>




This is my Xpath: Can some one pls guide
String MeetingType = "//*[@id='meetingDatesForm:meetingDatesTable_data']/tr["+(i+1)+"]/td[3]//div[3]";
    PageUtil.clickdropdown(driver, MeetingType);
   String meetingTypeXpath = AppXPathsConstants.meetingOptiponXpath_replace.replace("XXXXX", formEntryMap.get("Edit : Meeting Type"));
  WebElement meetingTypeElm = DriverUtil.getFluentWaitElementByXPath(meetingTypeXpath, 50, driver);
    
    meetingTypeElm.click();
    meetingTypeElm.sendKeys(Keys.ENTER);

mahesh harish

unread,
Feb 11, 2021, 1:21:41 AM2/11/21
to seleniu...@googlegroups.com
Hi ,

Try with actions class and java script executor .

Let me know 

Thanks
Mahesh G 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/39a64116-7257-4d1e-bb8c-383498757a9an%40googlegroups.com.

sandy

unread,
Feb 11, 2021, 3:29:51 AM2/11/21
to Selenium Users
Tried with both no luck any other inputs will be helpgul

mahesh harish

unread,
Feb 11, 2021, 3:55:26 AM2/11/21
to seleniu...@googlegroups.com
Show me screenshot of that page .
And show me the code and xpath also

Reply all
Reply to author
Forward
Message has been deleted
0 new messages