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

uitest: add demo showing how to select active frame

Change-Id: I76bb79047b9d15228dc29379203300ccf50fc4f1
üst b29d15de
...@@ -48,4 +48,19 @@ class HandleFiles(UITestCase): ...@@ -48,4 +48,19 @@ class HandleFiles(UITestCase):
self.ui_test.close_doc() self.ui_test.close_doc()
def test_select_frame(self):
calc_file = self.ui_test.load_file(get_url_for_data_file("test.ods"))
calc_file2 = self.ui_test.load_file(get_url_for_data_file("test2.ods"))
frames = self.ui_test.get_frames()
self.assertEqual(len(frames), 2)
frames[0].activate()
self.ui_test.close_doc()
frames = self.ui_test.get_frames()
self.assertEqual(len(frames), 1)
self.assertTrue(frames[0].getTitle().startswith("test2.ods"))
# vim:set shiftwidth=4 softtabstop=4 expandtab: */ # 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