tag:blogger.com,1999:blog-2411958903224745637.post7137404446781142649..comments2024-03-14T10:48:54.941+05:30Comments on All about application performance and test automation: Webdriver - Drop down select valuesBharath Marrivadahttp://www.blogger.com/profile/12485730458517413391noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2411958903224745637.post-58630530947904206202015-03-05T04:44:41.014+05:302015-03-05T04:44:41.014+05:30please share your approach as above one is not wor...please share your approach as above one is not working for my application.Anonymoushttps://www.blogger.com/profile/17279963531626362233noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-25704055829088599902011-12-05T11:21:33.227+05:302011-12-05T11:21:33.227+05:30Hello Andrew,
Your code will not working for my a...Hello Andrew,<br /><br />Your code will not working for my application, so I have taken different approach.Bharath Marrivadahttps://www.blogger.com/profile/12485730458517413391noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-57465004009609554732011-12-05T02:14:59.668+05:302011-12-05T02:14:59.668+05:30This examples is too complex and require to write ...This examples is too complex and require to write tricky xpath. Better to use <br /><br />Select options = Select(driver.findElement(By.id('ddlUOM'));<br />options.selectByValue('UOMCode');<br /><br />than better to move WebElement into the PageObject to make code more reusable.Anonymoushttps://www.blogger.com/profile/09583411349025527929noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-56388039436160757512011-11-28T19:34:05.070+05:302011-11-28T19:34:05.070+05:30Not required. Above code works perfectly fine to m...Not required. Above code works perfectly fine to me.Bharath Marrivadahttps://www.blogger.com/profile/12485730458517413391noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-49494051306198229142011-11-28T19:08:56.654+05:302011-11-28T19:08:56.654+05:30well you need to create object for "Select&qu...well you need to create object for "Select" and use it to select value from drop down.tarun khttps://www.blogger.com/profile/11392748105802885663noreply@blogger.com