Hi all,
I'm having some troubles with select box.
First, I'm using Ranorex ver. 4.0.4.
I need to select an option in my select, and I'm using Set Value/Tag Value that works fine. The problem is that browsers (I'm working on a multi-browser application) can't run the "on change" associated code.
In this moment I'm using a horrible piece of code that simulated so much {down} on my select until reaching my option, but I know that someone may call police for this ...
What I'm asking for is a way to solve this.
Thanx a lot for help and sorry for my english
Max
On change select troubles
-
- Posts: 20
- Joined: Thu May 09, 2013 10:44 am
Re: On change select troubles
Ok, I'm trying several ways to solve my problem, but without success ...
a simple question: I have this code:
where select is my select box and item the option tag I need to select.
May I retrive a list of OptionTag from my SelectTag?
I've tryed
but it returns a IList<Unknown> and I can't cast Unknown with an OptionTag.
So I've tryed
because in its tooltip I've read
but it's not true, because it returns a IEnumerator<Unknown> ...
can someone help me?
thanx
Max
a simple question: I have this code:
Code: Select all
SelectTag select = (SelectTag)tendina;
OptionTag item = (OptionTag)elementoInLista;
May I retrive a list of OptionTag from my SelectTag?
I've tryed
Code: Select all
select.Children;
So I've tryed
Code: Select all
select.Children.GetEnumerator();
Code: Select all
public IEnumerator<OptionTag> GetEnumerator()
can someone help me?
thanx
Max
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: On change select troubles
Hello,
Could you please send a little example solution using a sample application in order to show me you issue?
I am not exactly sure what you are trying to do with the select box.
Thank you!
Regards,
Bernhard
Could you please send a little example solution using a sample application in order to show me you issue?
I am not exactly sure what you are trying to do with the select box.
Thank you!
Regards,
Bernhard
-
- Posts: 20
- Joined: Thu May 09, 2013 10:44 am
Re: On change select troubles
Hi,
we have a lot of select box that must execute code when their value changes.
The only thing I'mtrying to do is activate the onChange event on them.
Now I've fixed the problem setting the previous element in the list and then making a KeySequence ({Down}) on my select box.
Thanx for answer
Max
we have a lot of select box that must execute code when their value changes.
The only thing I'mtrying to do is activate the onChange event on them.
Now I've fixed the problem setting the previous element in the list and then making a KeySequence ({Down}) on my select box.
Thanx for answer
Max
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: On change select troubles
Hello Max,
Thank you for the information.
I am glad that you could find a workaround.
Regards,
Bernhard
Thank you for the information.
I am glad that you could find a workaround.
Regards,
Bernhard