![]() |
| |||||||
Testing Anywhere Post messages and questions related to Testing Anywhere here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hi, I need to create a test that selects a user from a list displayed on a webpage, and deletes that specific user. The problem I have is that the 'delete' function just deletes the next / any user, and not the specific user I want to delete. eg: Username1 FirstName LastName Delete Username2 FirstName LastName Delete Username3 FirstName LastName Delete From a webpage, how can I sdelete Username2 and not any of the other users? See the attachment screen shot. Thanks. |
| |||
|
Hello, We recommend you to try using the key stoke commands. You can use keystroke to search for particular User that is required to be deleted. Using Tab keys we can navigate to different links available on the web page. Below mentioned series of keystrokes is the example to reach at the required link: 1. Keystrokes: [CTRL DOWN]f[CTRL UP] in "Currently Active Window" 2. Delay: (500 ms) 3. Keystrokes: user[ENTER] in "Find" 4. Delay: (500 ms) 5. Keystrokes: [ALT DOWN][F4][ALT UP] in "Window1:""" 6. Delay: (500 ms) 7. Keystrokes: [TAB] in "Currently Active Window" 8. Delay: (500 ms) 9. Keystrokes: [TAB] in "Currently Active Window" 10. Delay: (500 ms) 11. Keystrokes: [ENTER] in "Currently Active Window" |
| |||
|
Thanks, all worked. I had to also include an IF statement that checked for '1 match' or 'No match found' from the search to determine whether the test should continue deleting or not. Without the IF condition, the test would just delete the next user even if the one I was searching for was not found. |
![]() |
| Thread Tools | |
| Display Modes | |
| |