Thanks everyone for your help. We ended up finding the problem:
We were setting explicit IDs on our elements, so our tests can grab
them easier, in GWT this is done via:
usernameLabel.getElement().setId("consoleLoginPageUserNameInput");
This works fine for most GWT inputs, but for the SuggestBox it is
handled a bit differently:
spSelect.getElement().getElementsByTagName("input").getItem(0).setId("spSelect");
After grabbing the correct inner table, we are able to interact with
this input with Selenium just fine. Hope this helps someone.
Cheers
Pedro
On Jan 29, 11:08 pm, Evgeny Mayzel <[email protected]> wrote:
> #Python Script:
>
> def suggestBox(self,text):
> driver = self.driver
> d=driver.find_element_by_id("suggestion_box").send_keys(text)
> time.sleep(3) #wait fo suggestions to appear (could take longer)
> path="//tr/td[text() = "+"\""+text+"\"]" #choosing the inputed text
> from the suggestion Box
> e=driver.find_element_by_xpath(path)
> e.click()
>
> Good Luck :)
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.