Commit 48ce5a8c authored by Martin Krajnak's avatar Martin Krajnak
Browse files

remove deprecated fedora 25 code

parent bc08f9b4
Pipeline #29382601 failed with stages
in 0 seconds
......@@ -406,20 +406,5 @@ class GnomeShell(object): # pragma: no cover
may be customized. Also attempts to use the given item for reference
if search fails with the default/custom one.
"""
# a problem with this version of GS misreporting the positions
from subprocess import check_output
if 'Fedora release 25' in check_output('cat /etc/redhat-release', shell=True).decode('utf-8'):
xoffset = -130
from dogtail.rawinput import click
nd = self.getApplicationMenuButton(app_name)
x = nd.position[0] + nd.size[0] / 2 + xoffset
y = nd.position[1] + nd.size[1] / 2
click(x, y)
nd = self.getApplicationMenuItem(item, search_by_item)
x = nd.position[0] + nd.size[0] / 2 + xoffset
y = nd.position[1] + nd.size[1] / 2
click(x, y)
else:
self.getApplicationMenuButton(app_name).click()
self.getApplicationMenuItem(item, search_by_item).click()
self.getApplicationMenuButton(app_name).click()
self.getApplicationMenuItem(item, search_by_item).click()
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