bot().textWithLabel() does not found appropriated text field [message #1800978] |
Thu, 10 January 2019 14:56 |
|
Hello
I observed the following problem:
A Dialog has two text fields
- one with label ABC
- one with label ABCXYZ
I would like to find text field with label ABC, but method textWithLabel("ABC")
returns the second text field with label ABCXYZ. I use SWTbot version 2.2.1
Could you help me to resolve this issue
Thank you in advance
Alex
|
|
|
|
Re: bot().textWithLabel() does not found appropriated text field [message #1800991 is a reply to message #1800990] |
Thu, 10 January 2019 17:23 |
|
Actually I have the following picture
ABC TextFied
ABCXYZ TextField2
By the way I found the following approach
final SWTBot bot = GeneralMethods.getBot(this.searchShell);
@SuppressWarnings("unchecked")
final Matcher<Label> matcher = allOf(widgetOfType(Label.class), anyOf(withRegex("ABC$")));
final Label label = bot.widget(matcher);
final SWTBotLabel swtBotLabel = new SWTBotLabel(label);
This code finds corrsponded label. but I don't know to jump to next text field
|
|
|
Powered by
FUDForum. Page generated in 0.05089 seconds