Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to use if condition with a label
How to use if condition with a label [message #1793976] Tue, 21 August 2018 14:29
Angelo Sala is currently offline Angelo SalaFriend
Messages: 2
Registered: August 2018
Junior Member
Hi all,
first of all I would like to specify that I'm not a programmer and that I've started to use RCPTT recently (I've read the documentation present on Eclipse site).
I have the following problem.
I have a label that can have more than one value.
I would like to create a script that allows me for example to click on "Stop" if the label is "Idle" and to click on "Start in standard mode" if the label is "Stopped" (see image in attach).
I tried to start with the script below but, as I read also in the documents, if the statement is false, it returns an error.

if [get-label "Stopped" | get-text | eq "Stopped" ]{
get-button "Start in standard mode" | click }

How can I do to avoid this error and go ahead? Is there a better statement to use?

Thanks in advance to everyone :) !!!
  • Attachment: Capture.PNG
    (Size: 3.07KB, Downloaded 108 times)
Previous Topic:RCPTT working with Eclipse Photon?
Next Topic:Added application's functions/options missing (Toolkit)
Goto Forum:

Current Time: Fri Apr 19 22:10:06 GMT 2024

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

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

Back to the top