Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e8b6bcc6
Kaydet (Commit)
e8b6bcc6
authored
Haz 20, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: add initial version for calc element demo
Change-Id: I09b724cb80d75b17fd3ad5f3736245f9fca1d17a
üst
9d2fa0bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
create_chart.py
uitest/calc_tests/create_chart.py
+33
-0
No files found.
uitest/calc_tests/create_chart.py
Dosyayı görüntüle @
e8b6bcc6
...
...
@@ -183,4 +183,37 @@ def activate_chart(xContext):
ui_test
.
close_doc
()
def
select_chart_element
(
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
)
xGridWindow
.
executeAction
(
"SELECT"
,
mkPropertyValues
({
"OBJECT"
:
"Object 1"
}))
xGridWindow
.
executeAction
(
"ACTIVATE"
,
tuple
())
time
.
sleep
(
2
)
xCalcDoc
=
xUITest
.
getTopFocusWindow
()
print
(
xCalcDoc
.
getChildren
())
time
.
sleep
(
1
)
ui_test
.
close_doc
()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment