This is a migrated thread and some comments may be shown as answers.

Login Button not enabled after the password is set in the text field.

3 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Naga
Top achievements
Rank 1
Naga asked on 20 Jun 2012, 03:32 PM
Hello:
       I have scenario where we have to enter username,password and then click on Login button.But unfortunately after the username is set and the password is set the login button is not enabled,however it is working fine if we are manually entering the text.Can you please let us know if there is a way where we can enter the text character by character to get the login button enabled.

Regards,
Naga

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 20 Jun 2012, 04:33 PM
Hello Naga,

You will need to simulate real typing in your code. See here for more information.

Here's an example against Bing.com. Note that you should have a simulated mouse click into the field first:

HtmlInputText t = Find.ById<HtmlInputText>("sb_form_q");
 
t.MouseClick();
Manager.Desktop.KeyBoard.TypeText("Telerik", 50, 100);


All the best,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Niranjalee
Top achievements
Rank 2
answered on 02 Jan 2014, 03:00 PM
Hi,

I am having a similar issue. When I fill all the fields in the form the 'Finish' button is still disabled. As mention above its working fine when I key in the data.

I need to use data binding on this form as I need to enter multiple records. As I know, data binding is not possible on coded steps, is there any other method I can do this?

Thanks
Niranjalee.
0
Velin Koychev
Telerik team
answered on 07 Jan 2014, 12:29 PM
Hello Niranjalee,

It seems that you need to trigger some events. You should be able to do this if you try to enable/disable the test step property SimulateRealTyping or SimulateRealUser for the typing test steps.  You should be able to invoke the proper event also in a coded step. Please check out our documentation in order to get detailed information.

You should also be able to use databinding in a coded step. You can read this article for a similar solution with coded step. 

If you continue to experience any issues, please provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution.

Looking forward to hearing from you.


Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Naga
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Niranjalee
Top achievements
Rank 2
Velin Koychev
Telerik team
Share this question
or