Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread tanteanni
I've tried to make a Seleniumtest on the text content of a suggest box. The text is rendered correctly but don't shows up in rendered code ("inspect element") and selenium also sees only an empty string. The Elment look like this in chrome and friefox: But it is rendered with correct text - i

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread Thomas Broyer
On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote: > > I've tried to make a Seleniumtest on the text content of a suggest box. > The text is rendered correctly but don't shows up in rendered code > ("inspect element") and selenium also sees only an empty string. The Elment > look l

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
Thx Thomas this is working: assertThat(element.getAttribute("value"), is("SomeText")); On Wednesday, 11 July 2012 15:32:18 UTC+2, Thomas Broyer wrote: > > > On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote: >> >> I've tried to make a Seleniumtest on the text content of a suggest

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread Thomas Broyer
On Thursday, July 12, 2012 12:20:58 PM UTC+2, tanteanni wrote: > > Thx Thomas > > this is working: assertThat(element.getAttribute("value"), > is("SomeText")); > It shouldn't. (except in IE because GWT simply calls getAttribute(name), and IE looks for the property in this case rather than th

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
What should i say element.getText() returns "" and fails (this is used by junit code gen) but element.getAttribute("value") works (using ff webdriver). but thx for the hint with InputElement: but i can't find class/ or interface "InputElement" and there is no getProperty(String) in "org.openqa

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
i just read the javadoc for getAttribute: "...More exactly, this method will return the value of the given attribute, unless that attribute is not present, in which case the value of the property with the same name is returned..." So all is fine and work as intended :-) On Thursday, 12 July 20

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread Thomas Broyer
On Thursday, July 12, 2012 4:24:24 PM UTC+2, tanteanni wrote: > > What should i say element.getText() returns "" and fails (this is used by > junit code gen) but element.getAttribute("value") works (using ff > webdriver). element.getValue(). (getText() returns the innerText, which is empty fo