Forum Discussion
Without seeing your script or keyword tests and how you're running the application it will be very hard to determine the problem, can you provide screenshots of these?
Do any actions work on the application?
Hi,
As requested this is the script which I have written
function launnchApp() {
var app = TestedApps.Application.Run();
}
function login() {
Aliases.jp2launcher.LoginDialog.RootPane.null_layeredPane.Panel.CurvesPanel.Panel.LoginTextField.loginField.SetText("username");
Aliases.jp2launcher.LoginDialog.RootPane.null_layeredPane.Panel.CurvesPanel.Panel.PasswordTextField.passwordField.SetText("password");
Aliases.jp2launcher.LoginDialog.RootPane.null_layeredPane.Panel.CurvesPanel.Panel.Button.Click();
}
- cunderw8 years agoCommunity Hero
So I've seen issues before with custom java classes for text fields where SetText causes issues. Can you try using keys there instead?
Unrelated, but I would definitely take a closer look at name mapping and aliases. As it looks now it appears you have gone with keeping the default auto namemapping. This is great for exploring / seeing your object hierarchy, but will not be reliable if changes are made to your application. You aliases should also be more human friendly. RootPane.null_layeredPane.Panel.CurvesPanel.Panel is unneeded for your aliases as you will never by interacting directly with these objects.
- startapprentice8 years agoNew Contributor
Thanks for the advice. I tried using Keys instead of SetText and unfortunately I get the same error message.
- startapprentice8 years agoNew Contributor
Can you think of anything else which might cause the error to occur?
Thanks
Related Content
Recent Discussions
- 2 days ago
- 2 days ago
- 3 days ago
- 4 days ago