code for create/confirm password issue

Ask general questions here.
Styris
Posts: 49
Joined: Tue Feb 03, 2015 2:32 am

code for create/confirm password issue

Post by Styris » Thu Feb 05, 2015 9:17 pm

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!

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: code for create/confirm password issue

Post by krstcs » Thu Feb 05, 2015 9:57 pm

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.
Shortcuts usually aren't...