Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to set-text an integer in editbox (How to set-text an integer in editbox)
icon14.gif  How to set-text an integer in editbox [message #1718994] Mon, 04 January 2016 10:24 Go to next message
Steve Rogers is currently offline Steve RogersFriend
Messages: 5
Registered: January 2016
Junior Member
Hi Guys,
I'm new to RCPTT and as I've noticed. the set-text function can't set numbers on the editbox. I did try some work arounds like deleting first the pre existing number on the editbox using:

click-text 1 4 (to highlight the first 3 digits in the editbox)
key-type "BS" (to execute backspace)
set-text 200 (to set the text to integer 200)

but sadly it's not working. Is there any work around for this?
this tool is really amazing and I would like to continue to work with it.
If I'm able to use a work around for setting the editbox value to an integer.

Thanks In advance Master! Razz
Re: How to set-text an integer in editbox [message #1719087 is a reply to message #1718994] Tue, 05 January 2016 06:33 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Steve,

Could you please attach the exact recorded script and the failure reason?

Kind regards,
Ulyana.
Re: How to set-text an integer in editbox [message #1719667 is a reply to message #1719087] Mon, 11 January 2016 09:29 Go to previous messageGo to next message
Steve Rogers is currently offline Steve RogersFriend
Messages: 5
Registered: January 2016
Junior Member
Hi Ulyana,

Here's the exact code that I've recorded:
with [get-window "Sample Wizard"] {
get-button "Next >" | click
get-editbox -after [get-label "Name:"] | set-text Steve
get-editbox -after [get-label "Age:"] | set-text 25
get-editbox -after [get-label "Address:"] | set-text "101 PH City"
get-button Finish | click
}
but the thing is. It just get pass through the input box of "Age" as if that RCPTT thinks that it was able to set the input box to the said number (e.g. 25)
but in actual run it was left black without any error indicated. The input box for "Age" accepts only Numeric Input and this is were the problem started, I think.
Since I am able to set an input box that accepts alpha numeric into an integer input e.g (Address)

One of the work around I'm trying to think of is to just command the RCPTT to do a "KEY PRESS" of number button itself but sadly failed on how to generate such code as it sticks to "set-text" function upon recording.

Could you suggest a work around for this?

Thank you very much Ulyana.

[Updated on: Mon, 11 January 2016 09:39]

Report message to a moderator

Re: How to set-text an integer in editbox [message #1720510 is a reply to message #1719667] Tue, 19 January 2016 06:09 Go to previous messageGo to next message
Steve Rogers is currently offline Steve RogersFriend
Messages: 5
Registered: January 2016
Junior Member
Hi Ulyana,

Any suggestion to fix this issue? or any workaround?
I did try other methods but still, RCPTT can't set a digit in an inputbox that only accepts numeric characters.
Any suggestions are very much appreciated. Thanks Smile
Re: How to set-text an integer in editbox [message #1724554 is a reply to message #1720510] Wed, 24 February 2016 15:15 Go to previous messageGo to next message
Hic LA is currently offline Hic LAFriend
Messages: 28
Registered: July 2015
Junior Member
Hi
With integer values I remember I had some problems and I solved them using echo
Re: How to set-text an integer in editbox [message #1733204 is a reply to message #1724554] Wed, 25 May 2016 04:28 Go to previous messageGo to next message
Vanta Black is currently offline Vanta BlackFriend
Messages: 11
Registered: May 2016
Junior Member
Hi Hicyo,

Can you elaborate on how you used echo to type in a integer on a textfield. This will be very helpful.
Re: How to set-text an integer in editbox [message #1733715 is a reply to message #1733204] Tue, 31 May 2016 08:19 Go to previous message
Hic LA is currently offline Hic LAFriend
Messages: 28
Registered: July 2015
Junior Member
Hi,
Just add echo command like this:
... | set-text [echo 08]

Previous Topic:Issue in recording
Next Topic:set-text for integer doesn't work
Goto Forum:
  


Current Time: Thu Apr 25 08:35:58 GMT 2024

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

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

Back to the top