title: Unable to select the aria-activedescendant combobox element in java
body: <p>Im finding it hard to select the items from the combobox element. This combobox is something different. When i drag down the items, i could see the actual value of the item(i.e. aria-activedescendant="react-select-4--option-3"). After selecting the particular item, the value has got changed to "aria-activedescendant="react-select-4--value"". Plz suggest me the best solution to click the item. You have to specifically note this "aria-activedescendant="react-select-4--value"" in input section under html code.</p>
  
  <p>Tried with below code. I was able to just click the combo box element but not the value. I used id="react-select-4--value" to click the combo box, It errors as "element not clickable at point". Technically the system understands something wrong.</p>
  
  <pre><code>    public void ScrollAndClickOnElement(String loacator,String LocatorValue)
  {
      WebElement element = null;
      if(loacator.equalsIgnoreCase("cssSelector"))
           element = driver.findElement(By.cssSelector(LocatorValue));
      else if(loacator.equalsIgnoreCase("xpath"))
           element = driver.findElement(By.xpath(LocatorValue));
      else if(loacator.equalsIgnoreCase("id"))
           element = driver.findElement(By.id(LocatorValue));
      ((JavascriptExecutor)driver).executeScript("arguments[0].scrollIntoView(true);",element);
      element.click();
  }
  
  public void WaitAndClickElement(String locatorType,String locatorVaue)
  {
      WebDriverWait wait = new WebDriverWait(driver,50);
  
      if(locatorType.equalsIgnoreCase("cssSelector"))
          wait.until(ExpectedConditions.elementToBeClickable(By.cssSelector(locatorVaue))).click();
  
  
      else if(locatorType.equalsIgnoreCase("xpath"))
          wait.until(ExpectedConditions.elementToBeClickable(By.xpath(locatorVaue))).click();
  
      else if(locatorType.equalsIgnoreCase("id"))
          wait.until(ExpectedConditions.elementToBeClickable(By.id(locatorVaue))).click();
  }
  ScrollAndClickOnElement("id", AssessmentPageData.ElevatorManufacturer);
  WaitAndClickElement("cssSelector",AssessmentPageData.Appollo);
  </code></pre>
  
  <p>Referred to this <a href="https://stackoverflow.com/questions/40085027/does-the-aria-expanded-and-aria-haspopup-attributes-apply-to-select-elements">link</a> and used 'select' method, but it errors as "Element should have been "select" but was "span""</p>