Comments (8)
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.
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.
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.
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.
Great thanks checking.
from cobra.
By the way is there any plan on adding a new binary release ? The last one seem to be from Nov 2013.
from cobra.
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.
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)
- TypeError for getwindowlist() HOT 11
- LDTP_DEBUG=0 HOT 1
- Programme
- Can't read text from QTextBrowser HOT 1
- Cannot get the state 'isreadonly' of a textbox HOT 2
- Import issues with Python 3 HOT 2
- Unable to access FlowDocument UI elements HOT 1
- Slider (QSlider) getvalue throws "Unable to get value" HOT 6
- Help with build and package instructions? HOT 5
- Python bindings missing common functions? HOT 5
- ComboBox.GetAllItems fails on non-English Windows OS HOT 11
- Fault on enterstring('<') HOT 1
- Need to escape '|' pipe characters in regex matches on Windows HOT 1
- No file 'ldtp.jar' HOT 1
- 4.0 is broken on Win10 HOT 2
- Get Context Menu for Internet Explorer HOT 2
- C# ldtp Object LaunchApp method requires arguments by default.
- C#: Need some assistance converting the following Python code to C# HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobra.