wackywoo105
Registered User.
- Local time
- Today, 04:59
- Joined
- Mar 14, 2014
- Messages
- 203
I want to navigate a menu and change a password. I can enter the details but do not know how to select the various menu options to get to the password page. I cannot just navigate to the URL as for some reason it doesn't load the password page properly. I'm also not sure how to click the final "confirm update" button.
Can anyone help?
Code:
Need to click the following one after the other:
<a href="#" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-main" aria-expanded="false" aria-controls="navbar">Menu <em class="fa fa-bars"></em></a>
<a href="#" data-toggle="dropdown" aria-expanded="true"><i class="fa fa-gear"></i>Settings</a>
<a href="#" class="dropdown-item" data-navigation-link-item="" data-target-id="divMainContainer" data-ajax-url="/HomePortal/UserManagement/ChangePassword">Change Password</a>
Input data is fine:
<input class="form-control" id="CurrentPassword" name="CurrentPassword" type="password">
Me.EdgeBrowser0.ExecuteJavascript "document.getElementById('CurrentPassword').value =" & Chr(34) & "testPW123£" & Chr(34) & ";"
<input class="form-control" id="Password" name="Password" type="password">
Me.EdgeBrowser0.ExecuteJavascript "document.getElementById('Password').value =" & Chr(34) & "testPW123£" & Chr(34) & ";"
<input class="form-control" id="ConfirmPassword" name="ConfirmPassword" type="password">
Me.EdgeBrowser0.ExecuteJavascript "document.getElementById('ConfirmPassword').value =" & Chr(34) & "testPW123£" & Chr(34) & ";"
Now click this. Easy as has ID.
<input class="btn btn-success" data-ajax-url="/HomePortal/UserManagement/ChangePassword" data-btn-cancel-class="btn-danger" data-btn-cancel-label="Cancel" data-btn-ok-class="btn-success" data-btn-ok-label="Confirm Update" data-btn-save="" data-content="You are changing your password. Please confirm to proceed with the change." data-popout="true" data-source-id="divMainContainer" data-target-id="divMainContainer" data-title="Confirmation" data-toggle="confirmation" id="btnUpdate" name="btnUpdate" type="button" value="Update" data-original-title="" title="">
Not sure how to click this as no ID.
<a href="#" class="btn btn-success" data-apply="confirmation"><i class="glyphicon glyphicon-ok"></i> Confirm Update</a>
Can anyone help?