I'm using Selenium2(Webdriver) try that bro. Also do you have AIM,
MSN, Skype?
On Apr 6, 12:19 am, NewUser <
schalasani2...@gmail.com> wrote:
> Hi Arya
>
> I was also facing the same problem. With your input I tried to do a
> click and it throws an error that the element was not found. I am
> using selenium rc. This is what I gave:
>
> selenium.click("//div/div[2]/div[2]/div/div/form/div[5]/fieldset/label/
> span/div/div[6]"); for selecting June. When I view this path in xpath
> checker, I am able to see June. When I use this in my code, I get an
> error.
>
> Is there a way to achieve this?
>
> Thanks
>
> On Apr 6, 4:09 am, Arya <
arya6...@gmail.com> wrote:
>
>
>
>
>
>
>
> > ok I got it to work :)
>
> > This is what was needed to select the November
>
> > driver.FindElement(By.XPath("//html/body/div/div[2]/div[2]/div/div/
> > form/div[5]/fieldset/label/span/div[2]/div[11]/div")).Click();
>
> > On Apr 5, 6:55 pm, Arya <
arya6...@gmail.com> wrote:
>
> > > Thanks for the reply Mike
>
> > > I'm able to get the list appear with the following code
>
> > > driver.FindElement(By.XPath("//html/body/div/div[2]/div[2]/div/div/
> > > form/div[5]/fieldset/label/span/div")).Click();
>
> > > but I can't get it to click on any of the months.
>
> > > Is there anyway to change "Month" in <divclass="goog-inline-block
> > > goog-flat-menu-button-caption">Month</div> to say March using another
> > > method?
>
> > > On Apr 5, 2:06 pm, Mike Riley <
lvskip...@cox.net> wrote:
>
> > > > This is a fakedropdown, so using the Select class and its methods will not
> > > > work here.
>
> > > > Here you will need to click on the properdivtag to cause the list to
> > > > appear, but yourdivtags are not set up for that very well, since they
> > > > only have classes defined and I will bet you have more than onedivwith
> > > > those classes...
>
> > > > This one might work:
> > > > <divclass="goog-inline-block goog-flat-menu-button-caption">Month</div>
>
> > > > You could use this XPath: "//div[text()=' Month ']" (note that spaces
> > > > inside the quotes)
>
> > > > If you have anotherdivwith the same text you might have to qualify it
> > > > with the class as well.
>
> > > > So doing a click on that will get the list to display, but you will need to
> > > > wait until thedivtag you wish to select becomes visible before clicking
> > > > on it. If you try to click on it while it is still hidden you will get an
> > > > error.
>
> > > > Mike
>
> > > > On Thursday, April 5, 2012 10:17:30 AM UTC-7, Arya wrote:
>
> > > > > Hello
>
> > > > > There are two drop down menus in the Google registration page Month
> > > > > and Gender. It looks like they are made withdivtags. Is there anyway