Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Select "Cross ARM GCC" by SWT script(SWT and select text in python)
Select "Cross ARM GCC" by SWT script [message #1790035] Sun, 03 June 2018 17:52 Go to next message
Jiri Pospisil is currently offline Jiri PospisilFriend
Messages: 7
Registered: May 2018
Junior Member
Hi frends. I try generate project by script. And I have a problem. I need select text by SWT. Any idea, how to select?

I have this function:
def project_create(name):
	SWT.viewByTitle("Project Explorer").setFocus()	
	SWT.menu("File").menu("New").menu("Project...").click()
	SWT.textWithLabel("Wizards:").setText("C project")
	SWT.button("Next >").click()
	#SWT.viewByTitle("Project Explorer").setFocus()	
	#SWT.menu("File").menu("New").menu("C Project").click()
	SWT.textWithLabel("Project name:").setText(name)
	SWT.tree().collapseNode("Executable")
	SWT.tree().getTreeItem("Makefile project").select().click()
	SWT.tree().getTreeItem("Makefile project").expand()
	
	SWT.tree().getTreeItem("Makefile project").getNode("Empty Project").select().click()

	# Select "Cross ARM GCC here"


  • Attachment: Problem.PNG
    (Size: 31.22KB, Downloaded 123 times)

[Updated on: Sun, 03 June 2018 17:55]

Report message to a moderator

Re: Select "Cross ARM GCC" by SWT script [message #1790036 is a reply to message #1790035] Sun, 03 June 2018 19:09 Go to previous message
Jiri Pospisil is currently offline Jiri PospisilFriend
Messages: 7
Registered: May 2018
Junior Member
And I forgot:
SWT = org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot()
Previous Topic:Sashform drag does not work due to effect of textsize recalculation
Next Topic:Create Pane-based selection wizard
Goto Forum:
  


Current Time: Thu Apr 25 11:37:30 GMT 2024

Powered by FUDForum. Page generated in 0.03550 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top