简体   繁体   English

如何使用SWTBot进入Eclipse中运行配置的“常用”选项卡?

[英]How do I get to the common tab in run configurations in Eclipse using SWTBot?

We're writing some tests using SWTBot, and we need to change some things in the common tab of the run configurations during the test. 我们正在使用SWTBot编写一些测试,并且需要在测试过程中更改运行配置的“公共”选项卡中的某些内容。 Any idea on how to navigate there? 有关如何导航到那里的任何想法?

Thanks, Oren 谢谢,奥伦

尝试bot.cTabItem(index).activate();

it works for me by using the Keyboard func (shortcut: ALT+C): 使用键盘功能(快捷键:ALT + C)对我有用:

KeyboardFactory.getAWTKeyboard().pressShortcut(Keystrokes.ALT,KeyStroke.getInstance(0, 'C'));
bot.sleep(3000);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM