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

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

recategorized Aug 29, 2018 by Vardhan 585 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 29, 2018 by Vardhan
• 13,150 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,020 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,910 points
11,220 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
10,816 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,500 points
13,676 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,190 points
9,144 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,910 points
7,221 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 3, 2020 in Selenium by Sri
• 3,190 points
7,875 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,150 points
1,049 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,150 points
15,920 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP