Ask a Question

Enter a text into textbox

kaiiii
Regular Contributor

Enter a text into textbox

Here's a sample of code below:

 

Set Sell_currency =  Mobile.Device("Q3000").Process("com.cor.currency").Layout("NO_ID").Layout("action_bar_root").Layout("content").View("drawer_layout").ScrollView("homeScrollView").Layout("NO_ID").Layout("NO_ID", 2).Layout("sample2").Layout("NO_ID", 2).Layout("NO_ID").Layout("NO_ID").Layout("NO_ID").TextView("textYouSend")

Sell_currency.Click

Sell_currency.SetText(Project.variable.Currency("Amount"))

but it's not entering the text into text box.....also got there SetText_2 to SetText_8 types property...I don't know what's the difference between them and when we will use it

13 REPLIES 13
kaiiii
Regular Contributor

Hi,

Yes.. The virtual Keyboard displayed on the screen but i have no Idea to work on it. Is there any link to learn this type of activity.

By the way.. the problem get solved..actually when i got details for that TextBox by using Object Spy... I didn't add that Java Class to object mapping in EditText Control.
Now it's working fine

kaiiii
Regular Contributor

Hi,

Yes.. The virtual Keyboard displayed on the screen but i have no Idea to work on it. Is there any link to learn this type of activity.

By the way.. the problem get solved..actually when i got details for that TextBox by using Object Spy... I didn't add that Java Class to object mapping in EditText Control.
Now it's working fine.

kaiiii
Regular Contributor

Hi, Yes.. The virtual Keyboard displayed on the screen but i have no Idea to work on it. Is there any link to learn this type of activity. By the way.. the problem get solved..actually when i got details for that TextBox by using Object Spy... I didn't add that Java Class to object mapping in EditText Control. Now it's working fine.
AlexKaras
Champion Level 3

Hi,

 

> the problem get solved

Great, thank you for the update.

 

> I didn't add that Java Class to object mapping in EditText Control

OK. I am getting that as this is a custom control and TestComplete did not map it to EditText one without this hint.

 

> Is there any link to learn this type of activity.

No. Virtual keyboard is not a part of your tested application, is not instrumented and thus can be controlled only via images or coordinate clicks. I asked about it to check whether or not the control actually gets input focus.

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: