Hi!
I'm new to the Telerik tool and are for the moment evaluating it against Selenium webdriver.
But I have come across a problem where I need some help.
I'm trying to write a test for typeahead but are having problem with focus when I run the test on a testserver.
If I set the text directly I will not be able to validate the typeahead.
textBox.Text = "some text";
(textBox is here an HtmlInputText)
If I use the keyboard, I will be able to validate it, but if I run the test on for example a testserver (or if I minimize the browser) it doesn't work.
textBox.Focus();
textBox.Click();
var desktop = new Desktop();
var keyb = new KeyBoard(desktop);
keyb.TypeText("some text");
keyb.KeyPress(Keys.Tab);
Is there any other way to do this so I don't need to have focus on the browser?
Regards,
I'm new to the Telerik tool and are for the moment evaluating it against Selenium webdriver.
But I have come across a problem where I need some help.
I'm trying to write a test for typeahead but are having problem with focus when I run the test on a testserver.
If I set the text directly I will not be able to validate the typeahead.
textBox.Text = "some text";
(textBox is here an HtmlInputText)
If I use the keyboard, I will be able to validate it, but if I run the test on for example a testserver (or if I minimize the browser) it doesn't work.
textBox.Focus();
textBox.Click();
var desktop = new Desktop();
var keyb = new KeyBoard(desktop);
keyb.TypeText("some text");
keyb.KeyPress(Keys.Tab);
Is there any other way to do this so I don't need to have focus on the browser?
Regards,