Forum Discussion

lucieneven's avatar
lucieneven
Contributor
14 years ago

redundant scripts character by character when entering text in the web page

Hello,



This is a question about strange behavior of entering text in the web page.



As can be seen from 2011-12-02 1-23-21 PM.png, TestComplete will generate multiple scripts character by character. It happens to me all the time. My environment is Win7 64bits, IE32 or 64bits.



  Call textbox.SetText("")

  Call textbox.SetText("ad")

  Call textbox.SetText("ad")

  Call textbox.SetText("adm")

  Call textbox.SetText("admi")

  Call textbox.SetText("admin")

  Call textbox.SetText("admini")

  Call textbox.SetText("adminis")

  Call textbox.SetText("administr")

  Call textbox.SetText("administra")

  Call textbox.SetText("administrat")

  Call textbox.SetText("administrator")



Notice the last line of script, it's

  Call textbox.SetText("administrator")

instead of  

  Call textbox.SetText("administrato").



And seems it's not the same. So someitmes you'll see different behavior. Maybe because of user enter the character not exactly the same speed? btw, the visualized picture will be generated accordingly.



I'm not sure whether it happens to someone others. But it didn't happen when i evaluated TestComplete on an XP virtual machine.



It's not a big deal, cause simply remove the redundant script is OK. Just a little bit annoying, cause our testing case has a lot of place to enter character like this example.



Could you please advise some here?



Lucien



Sometimes the

1 Reply

  • Hello Lucien,


    Could you please give us a bit more information on this issue?

    1. What version of Internet Explorer (8, 9 or any other) are you using?

    2. Do you have any Internet Explorer add-ons or third-party applications that can affect the text you type on web forms? If you do, could you please check whether the issue persists if you disable those add-ons or terminate those third-party applications during the test recording?

    3. Does the issue occur only when you record tests for Internet Explorer or for any application running on your computer?

    Thanks in advance.