Skip to main content



      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 10:29
Eclipse UserFriend
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 138 times)
Previous Topic:RCPTT working with Eclipse Photon?
Next Topic:Added application's functions/options missing (Toolkit)
Goto Forum:
  


Current Time: Wed Apr 30 20:38:04 EDT 2025

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

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

Back to the top