Hi I am trying to automate my oracle apex based web application but i am not able to select any value from the select list where i want to select customers as well as from the grid from which i select items. Problem is that with the help of xpath it only opens up the list of customers but not select that particular value from the list.

My Source code is as below

driver.findElement(By.linkText("Sale Order")).click();
driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS );
driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS );

Select oselect = new Select(driver.findElement(By.id("select2-P191_SUPPLIER_CODE-container")));
oselect.selectByVisibleText("K. K. INDUSTRIES RR-00004");
  • please Share your HTML Dom code Apr 20, 2020 at 20:02
  • Also, please share your actual automation test code. What programming language are you using? The more info you provide, the easier it is for the community to help.
    – Lee Jensen
    Apr 21, 2020 at 15:57


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.