summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
diff options
context:
space:
mode:
authorHannah Meeks <hmeeks4135@gmail.com>2022-04-16 18:07:54 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-04-19 17:12:30 +0200
commit182833b893ae4ad7430479f2dfebcc9c130cf27c (patch)
tree23032e877047c0a0aedaea80702e36c483337ba6 /sc/qa/uitest/calc_tests3/insertQrCodeGen.py
parentc929c563e2029bbb969dc417a688cca8934e69b0 (diff)
tdf#97361 - make unit tests more pythonic.
Change-Id: I853cda76522ebf3c9a8f7389d5b2b6fc9611f502 Signed-off-by: Hannah Meeks <hmeeks4135@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133136 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/calc_tests3/insertQrCodeGen.py')
-rw-r--r--sc/qa/uitest/calc_tests3/insertQrCodeGen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/uitest/calc_tests3/insertQrCodeGen.py b/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
index 2594b66c2dea..7337962c23ba 100644
--- a/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
+++ b/sc/qa/uitest/calc_tests3/insertQrCodeGen.py
@@ -30,7 +30,7 @@ class insertQrCode(UITestCase):
xBorder.executeAction("DOWN", tuple())
# check the QR code in the document
- element = document.Sheets.getByIndex(0).DrawPage.getByIndex(0)
+ element = document.Sheets[0].DrawPage[0]
self.assertEqual(element.BarCodeProperties.Payload, "www.libreoffice.org")
self.assertEqual(element.BarCodeProperties.ErrorCorrection, 1)
self.assertEqual(element.BarCodeProperties.Border, 1)