Tried doing automation of drop down with click or type into select item

0 votes
Aug 28, 2018 in Selenium by Bharti
• 130 points

recategorized Aug 28, 2018 by Vardhan 146 views

2 answers to this question.

0 votes
Hey Bharti,

If you're looking for a way to execute that functionality, then you might want to check out our blogs and Video tutorials on YouTube.

This video has it all covered: https://www.youtube.com/watch?v=5FUdrBq-WFo

Or even the blogs in this series will help: https://www.edureka.co/blog/what-is-selenium/
answered Aug 28, 2018 by Vardhan
• 13,200 points
0 votes

Hello @Bharti, I was using the same and I figured out that the drop down is almost similar to text box if you know what you want to push in.

see this example where i used facebook's DOB section

driver.get("https://www.facebook.com");
driver.findElement(By.id("day")).sendKeys("6");
driver.findElement(By.id("month")).sendKeys("Nov");
Select year = new Select(driver.findElement(By.id("year")));
year.selectByVisibleText("2000");
answered Dec 20, 2018 by Priyaj
• 58,100 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

Select a drop down value of angular js application using selenium using text

To select drop down use following, driver.findElements(By.className("Your dropdown ...READ MORE

answered Jun 18, 2018 in Selenium by Samarpit
• 5,890 points
5,898 views
0 votes
1 answer

How do i click on <input type=file> on any browser if i'm testing with Selenium Webdriver?

Does not matter which OS or which ...READ MORE

answered Apr 29, 2018 in Selenium by king_kenny
• 3,710 points
7,894 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,944 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
5,723 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
3,499 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,010 points
4,220 views
+6 votes
1 answer

Recording all of our test cases in Selenium IDE

Well @vincitydaimo, for obvious reasons we prefer not ...READ MORE

answered Sep 20, 2018 in Selenium by Vardhan
• 13,200 points
147 views
+1 vote
2 answers

How to get the title of a webpage using Selenium Java?

Essentially, driver.getTitle(); function can be used to ...READ MORE

answered Dec 17, 2018 in Selenium by Vardhan
• 13,200 points
9,833 views