简体   繁体   中英

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. 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):

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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