Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] access content of cTabItem of terminal

Hello,

SWTBotShell shell=bot.shell("Launch Terminal");
shell.active();
bot.combobox(0).setSelection("Telnet Terminal");
bot.text(0).setText(hostIP);
bot.combobox(2).setText(Integer.toString(port));
bot.button(0).click() ; //OK Button
bot.waitUntil(shellCloses(shell));

I saw Terminal view host connected 

How can we read text output in cTabItem(0) as in console ?


We execute this line :

view.cTabItem(0).contextMenu.menu("Select All").click(); or  view.cTabItem(0).contextMenu("Select All").click();


But we get this error :

error: Could not find context menu for widget: CTabItem {*Wrong  Thread*} message 

 
Regards

--
Yunus Atmaca

Back to the top