I'm trying to select options from a dropdown, but it doesn't have the 'select' tag, so if I try to use the 'select' function in selenium it doesn't work. Then I tried following an example about clicking and using interactions like in the code below (I had to do the clicking that way because there's a message in the website that doesn't let me click objects in the normal way) but it doesn't work, the code runs, shows no errors, but doesn't select any option either.
WebElement ele1 = driver.findElement(By.xpath("//*[text()='- Select a Service -']"));
JavascriptExecutor executor1 = (JavascriptExecutor)driver;
executor1.executeScript("arguments[0].click();", ele1);
Actions keyDown = new Actions(driver);
keyDown.sendKeys(Keys.chord(Keys.DOWN, Keys.DOWN)).perform();
Is there something wrong in my code? Or maybe you could tell me another way of selecting options from dropdowns when they don't have the 'select' tag.
Note: Below is an image of the dropdown code, it's the one in the bracket with the number '1'. The only thing to differentiate it from another dropdown is the title (the text within the red rectangle).