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
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
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
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
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
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
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