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 25 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
• 11,580 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
• 56,160 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,130 points
1,476 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,590 points
2,554 views
0 votes
1 answer

Get coordinates or dimensions of element with Python using Selenium WebDriver

WebElements have the properties such as .size and .location. ...READ MORE

answered Jul 11, 2018 in Selenium by Meci Matt
• 9,400 points
1,281 views
0 votes
1 answer

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,050 points
276 views
0 votes
1 answer
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,130 points
639 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
265 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
• 11,580 points
56 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
• 11,580 points
119 views