Page 1 of 1

code for create/confirm password issue

Posted: Thu Feb 05, 2015 9:17 pm
by Styris
I have a couple things. On a mobile app I am trying to do a couple things here: There are two fields: Create password & Confirm password. they both need to be a minimum of 6 chars, and both need to match. I need to automation it so here is what I did

1. For the minimum 6 chars portion I tried this
if create_Password.SelectionLength < '6'
{
min_6_chars.Checked = "False";
}
else
{
min_6_chars.Checked = "True"
}


2. For the matching I tried this
if create_Password.TextValue.Equals confirm_Password.TextValue
{
passwords_must_match.Checked = "True";
}

else
{
passwords_must_match.Checked = "True";
}


Can anyoen tell me where I am wrong...or what I need to do instead. Would really appreciate it!

Re: code for create/confirm password issue

Posted: Thu Feb 05, 2015 9:57 pm
by krstcs
Please do not post the same thing multiple times, it only leads to confusion over whether the questions has been answered.


Ranorex team, please close this thread.