У нас вы можете посмотреть бесплатно [ Program & Execution] How to automate multi select drop down using selenium webdriver или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
public class Test11 { public static void main(String[] args) throws InterruptedException { //Launch the chrome browser System.setProperty("webdriver.chrome.driver", "F:\\TestingPrograms\\chromedriver.exe"); WebDriver driver= new ChromeDriver(); //Assign the website link to string variable String url= "https://jobs.brassring.com/1033/ASP/T..."; // open given link driver.get(url); Thread.sleep(5000); //locate drop down element WebElement e = driver.findElement(By.id("Question139__FormText8")); Thread.sleep(5000); //create objects for Select & Actions Class Select s= new Select(e); Actions a = new Actions(driver); // deselect the all options from the drop down "Country" s.deselectAll(); //select the values from drop down a.keyDown(Keys.CONTROL) .click(s.getOptions().get(1)) .click(s.getOptions().get(3)) .keyUp(Keys.CONTROL) .build().perform(); Thread.sleep(5000); //To get all the countries that are selected in the drop down. List (WebElement) l = s.getAllSelectedOptions(); System.out.println("The number of countries selected in the dropdown :"); for(int i=1;i ( =l.size();i++) { String countries = s.getOptions().get(i).getText(); System.out.println( countries); } // Click on search button driver.findElement(By.id("submit1")).click(); Thread.sleep(5000); driver.close(); } } and also find the same program in my first comments and find more info in http://seleniumjars.blogspot.in/ How to automate multi select drop down using selenium webdriver automate multi select drop down in selenium ide automate multi select drop down in selenium webdriver automate multi select drop down in selenium xpath automate multi select drop down in selenium yeast automate multi select drop down in selenium youtube automate multi select drop down in selenium zinc automate multi select drop down in selenium zink automate drop down using selenium automate dropdown in selenium java automate dropdown in selenium xpath automate dropdown in selenium yeast automate dropdown in selenium youtube automate dropdown in selenium zinc automate dropdown in selenium zink dropdown automation in selenium how to automate drop down in selenium how to automate drop down in selenium ide how to automate drop down in selenium webdriver how to automate dropdown in selenium how to automate dropdown in selenium webdriver