Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Hi Markus


For system python you need to set PYTHONPATH and URE_BOOTSTRAP either in
the script or in your terminal. If called through the makefiles our build
system already sets the values correctly.


Thanks, I was able to run my test in debug mode.

When I run the following in a test case in debug mode, after the "CTRL+X"
action has executed, the selected chart object is not disappearing. I can
see that the selection action is working well though.
Any hints as to what I may be missing here ? Thanks.

doc = self.ui_test.load_file(get_url_for_data_file("tdf108881.ods"))
xGridWindow = self.xUITest.getTopFocusWindow().getChild("grid_window")
xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""}))
xGridWindow.executeAction("SELECT", mkPropertyValues({"OBJECT": "Object
1"}))
print("Selected chart")
time.sleep(10)
xGridWindow.executeAction("TYPE", mkPropertyValues({"KEYCODE": "CTRL+X"}))
print("Cut chart")
time.sleep(10)
self.ui_test.close_doc()


Regards,
Dennis

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.