tag:blogger.com,1999:blog-2411958903224745637.post7032808914610812233..comments2024-03-14T10:48:54.941+05:30Comments on All about application performance and test automation: Webdriver - Select list box itemsBharath Marrivadahttp://www.blogger.com/profile/12485730458517413391noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2411958903224745637.post-72547979339889796152013-08-12T10:28:47.732+05:302013-08-12T10:28:47.732+05:30Read the following link, similar problem that you ...Read the following link, similar problem that you are facing<br /><br />http://bharath-marrivada.blogspot.in/2012/04/selenium2webdriver-cannotclickonelement.html Bharath Marrivadahttps://www.blogger.com/profile/12485730458517413391noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-9319154717687479042013-08-11T00:10:31.304+05:302013-08-11T00:10:31.304+05:30Bharath
My application web page has few droplists...Bharath<br /><br />My application web page has few droplists, when I select first droplist value, page reloads and after that it is throwing StaleElementReferenceException and not able to do anything with driver.<br /><br />StaleElementReferenceException: Element not found in the cache - perhaps the page has changed since it was looked up<br /><br />I tried different options like using implicit and explicit wait commands, however driver is throwing this exception. Do you have any idea on how to resolve this issue.Anonymoushttps://www.blogger.com/profile/16835201723666220149noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-47611190173889393522012-05-29T12:37:38.950+05:302012-05-29T12:37:38.950+05:30Bharath,
The code runs but my problem is when it ...Bharath,<br /><br />The code runs but my problem is when it will selecting the value application hides behind all other open aplication in my system.<br /><br />Thanks,<br />MukeshMUKESHhttps://www.blogger.com/profile/00283886878744407076noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-91442518195044319852012-05-29T12:14:25.812+05:302012-05-29T12:14:25.812+05:30Hello Mukesh,
Below code is working fine on IE8.
...Hello Mukesh,<br /><br />Below code is working fine on IE8.<br /> <br />String Value = "FUTIDX";<br /> driver.findElement(By.xpath("//select[@id='instrumentType']/option[@value='"+Value+"']")).click();Bharath Marrivadahttps://www.blogger.com/profile/12485730458517413391noreply@blogger.comtag:blogger.com,1999:blog-2411958903224745637.post-197939204543680492012-05-29T11:52:12.170+05:302012-05-29T11:52:12.170+05:30Hi Bharath,
I want to select the text from list-b...Hi Bharath,<br /><br />I want to select the text from list-box.<br />Problem is when i select first list-box then the application goes behind all opened applications.<br />This problem only occurs when i run my code in IE and it runs fine in Firefox.<br />Please check this, why its happening.<br /><br />URL link=<br />http://www.nseindia.com/products/content/derivatives/equities/historical_fo.htm<br /><br />Am using selenium 2.21 and ie8.<br /><br />My code-<br /> driver = new InternetExplorerDriver();<br /> driver.get("http://www.nseindia.com/products/content/derivatives/equities/historical_fo.htm");<br /> Select select = new Select(driver.findElement(By.xpath("//form[@id='dataForm']/div[2]/select"))); <br /> select.selectByVisibleText("OPTSTK");<br /><br /><br />Thanks,<br />MukeshMUKESHhttps://www.blogger.com/profile/00283886878744407076noreply@blogger.com