1# This Source Code Form is subject to the terms of the Mozilla Public 2# License, v. 2.0. If a copy of the MPL was not distributed with this file, 3# You can obtain one at http://mozilla.org/MPL/2.0/. 4 5from __future__ import absolute_import 6 7from firefox_puppeteer.ui.base import UIBaseLib 8 9 10class Panel(UIBaseLib): 11 12 def __eq__(self, other): 13 return self.element.get_attribute('id') == other.element.get_attribute('id') 14 15 def __ne__(self, other): 16 return self.element.get_attribute('id') != other.element.get_attribute('id') 17 18 def __str__(self): 19 return self.element.get_attribute('id') 20