Kaydet (Commit) fc0c5d61 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: add demo showing how to deselect an UI object

Change-Id: Ie755dd93296de4031abe36833872c58032271d22
üst 20f74cf3
......@@ -124,4 +124,30 @@ def create_from_second_page(xContext):
ui_test.close_doc()
def deselect_chart(xContext):
xUITest = xContext.ServiceManager.createInstanceWithContext(
"org.libreoffice.uitest.UITest", xContext)
ui_test = UITest(xUITest, xContext)
ui_test.create_doc_in_start_center("calc")
fill_spreadsheet(xUITest)
xCalcDoc = xUITest.getTopFocusWindow()
xGridWindow = xCalcDoc.getChild("grid_window")
ui_test.execute_dialog_through_command(".uno:InsertObjectChart")
xChartDlg = xUITest.getTopFocusWindow()
xNextBtn = xChartDlg.getChild("finish")
xNextBtn.executeAction("CLICK", tuple())
xGridWindow.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""}))
time.sleep(2)
ui_test.close_doc()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment