Ask general questions here.
-
Uwes
- Posts: 5
- Joined: Wed Sep 02, 2015 8:13 am
Post
by Uwes » Wed Sep 02, 2015 2:07 pm
Hello,
I've been trying to work with items on a website, i.e. using
Code: Select all
mytextbox.Element.SetAttributeValue("Text", "123");
Things that work in winforms don't work in the web.
Why?

-
odklizec
- Ranorex Guru

- Posts: 7469
- Joined: Mon Aug 13, 2012 9:54 am
- Location: Zilina, Slovakia
Post
by odklizec » Wed Sep 02, 2015 2:16 pm
Hi,
It works for me in my web-based tests. What kind of element is this "mytextbox" (HTML Input tag or something else)? Could you please post Ranorex snapshot of the element in question?
Pavel Kudrys
Ranorex explorer at
Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
odklizec
- Ranorex Guru

- Posts: 7469
- Joined: Mon Aug 13, 2012 9:54 am
- Location: Zilina, Slovakia
Post
by odklizec » Wed Sep 02, 2015 4:42 pm
OK, I missed there is used "Text" in your sample. You will have to use InnerText or better TagValue for the web-based inputs.
Pavel Kudrys
Ranorex explorer at
Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration