Xshell Forum

Type mismatch for Python script xsh.Screen.WaitForStrings()

Last post: Wednesday, October 28, 2015 2:00 AM by Support, 2 reply

 
Monday, October 26, 2015 7:40 AM - Jackie Yeh

Type mismatch for Python script xsh.Screen.WaitForStrings()

 
Dear Support team,

I've followedXshell Forum : Pyhon script error 80040154
to install Python on my system, and now Python script is working.

However I met an issue on xsh.Screen.WaitForStrings(), please help to clarify:

=========== Python Script ================
def Main():
g_vWaitFors = [
"Waiting for 1",
"Waiting for 2"]

xsh.Screen.Send("user")
xsh.Screen.WaitForStrings(g_vWaitFors, 1000)
==========================================

It shows
COM Error: Type mismatch. (0x-7ffdfffb)

The error message is attached. Please clarify how to write a correct xsh.Screen.WaitForStrings() API for Python. Thanks!

Program Ver. : Xshell 5
Monday, October 26, 2015 7:49 AM - Jackie Yeh

Re: Type mismatch for Python script xsh.Screen.WaitForStrings()

 
One more thing:
I've downloaded the latest Xshell 5.0 0788 versinon with the following module infor.:

Xshell.exe: 5.0.0030, nssock2.dll: 5.0.0020, nsssh3.dll: 5.0.0026, nsprofile2.dll: 5.0.0019, nslicense.dll: 5.0.0014, nsutil2.dll: 5.0.0019, nsverchk.exe: 5.0.0008, Xagent.exe: 5.0.0015, Xactivator.exe: 5.0.0003
Wednesday, October 28, 2015 2:00 AM - Support

Re: Type mismatch for Python script xsh.Screen.WaitForStrings()

 
Hi Jackie,

There is an issue with WaitForString and WaitForStrings. We've identified the issue and we will release an update as soon as possible.

Thank you for reporting this issue.

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog