Coder Social home page Coder Social logo

Comments (8)

Zitrax avatar Zitrax commented on July 30, 2024

The actual traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 72, in __call__
    return self.__send(self.__name, args)
  File "C:\Python27\lib\xmlrpclib.py", line 1599, in __request
    verbose=self.__verbose
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 193, in request
    raise LdtpExecutionError(e.faultString.encode('utf-8'))
ldtp.client_exception.LdtpExecutionError: Unhandled exception: Object reference not set to an instance of an object.

from cobra.

nagappan avatar nagappan commented on July 30, 2024

Can you try this ?

In a terminal:
set LDTP_DEBUG=1
cobrawinldtp.exe

From python prompt:

ldtp.selectitem(...)

You can find the traces on first console why it failed. Thanks

from cobra.

Zitrax avatar Zitrax commented on July 30, 2024

Log ends with:

:InternalGetObjectHandle: Child handle NULL
:System.NullReferenceException: Object reference not set to an instance of an object.
   at Ldtpd.Combobox.InternalComboHandler(String windowName, String objName, String item, String& selectedItem, String a
ctionType, ArrayList childList)

So although the rest of the log did not immediately tell me anything this points to Combobox.cs, the only commit of the three above that touches it is ef33a26, and indeed if I revert that single commit it works again.

from cobra.

Zitrax avatar Zitrax commented on July 30, 2024

I think I see the issue, that commit used comboTtype on line 262. Changing that to type solves my problem. I can submit a pull request for that.

from cobra.

nagappan avatar nagappan commented on July 30, 2024

Great thanks checking.

from cobra.

Zitrax avatar Zitrax commented on July 30, 2024

By the way is there any plan on adding a new binary release ? The last one seem to be from Nov 2013.

from cobra.

Zitrax avatar Zitrax commented on July 30, 2024

And unfortunately it turns out my patch above did not really solve this problem - I must have missed something since the problem reappeared now. I tried to reproduce again, and it was definitely the introduced in the earlier mentioned commit.

Further trying to narrow it down showed that it was a LogMessage call this time that seemed to cause this:

LogMessage("elementItem: " + elementItem.Current.Name +
                    " - " + elementItem.Current.ControlType.ProgrammaticName);

it also happens if I replace that log call with anything that use elementItem.Current. Seem a bit odd, but as of now I can reproduce this consistently, comment out those two lines and it works put them back again and it fails. So either the use of that has some direct side effect or there is something weirder going on like a timing issue.

Any ideas ?

from cobra.

stilok2 avatar stilok2 commented on July 30, 2024

I'm getting this error while using getcombovalue method.
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 73, in call
return self.__send(self.__name, args)
File "C:\Python27\lib\xmlrpclib.py", line 1602, in __request
verbose=self.__verbose
File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 194, in request
raise LdtpExecutionError(e.faultString.encode('utf-8'))
ldtp.client_exception.LdtpExecutionError: Unhandled exception: Object reference not set to an instance of an object.

Has this been resolved? Or am I pointing to the wrong binary? Thanks for the help

from cobra.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.