I have three combo boxes present on the page and I have to click the third one and select options from it.
I have code for clicking random. please let me know how to modify this code to select third combo box.
List<WebElement> list = driver.findElements(By.cssSelector(".select2-selection__arrow"));
Random r = new Random();
int randomvalue = r.nextInt(list.size());
System.out.println(randomvalue);
list.get(randomvalue).click();