class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(type(self), self).setup_method(method)
        self.u = Upload().wait_until_loaded()

    def teardown_method(self, method):
        super(type(self), self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        preview = self.u.upload('english_muffin.jpg')
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(type(self), self).setup_method(method)
        self.u = Upload().wait_until_loaded()

    def teardown_method(self, method):
        super(type(self), self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        preview = self.u.upload('english_muffin.jpg')
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(CheckFileUpload, self).setup_method(method)
        self.u = Upload(self.driver).open().wait_until_loaded()

    def teardown_method(self, method):
        super(CheckFileUpload, self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        preview = self.u.upload('english_muffin.jpg')
        self.take_named_screenshot('potato')
    def test_local_upload(self):
        self.u = Upload(self.driver).open().wait_until_loaded()
        preview = self.u.upload('english_muffin.jpg')
        self.take_named_screenshot('potato')
        import time
        time.sleep(20)

    # @pytest.mark.banana
    # def test_banana(self):
    #     self.driver.get("http://www.adobe.com/software/flash/about/")
    #     import time
    #     time.sleep(100000)
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(CheckFileUpload, self).setup_method(method)
        # self.u = Upload(self.driver).open().wait_until_loaded()

    def teardown_method(self, method):
        super(CheckFileUpload, self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        self.u = Upload(self.driver).open().wait_until_loaded()
        preview = self.u.upload('english_muffin.jpg')
        self.take_named_screenshot('potato')
        import time
        time.sleep(20)

    # @pytest.mark.banana
    # def test_banana(self):
    #     self.driver.get("http://www.adobe.com/software/flash/about/")
    #     import time
    #     time.sleep(100000)
 def setup_method(self, method):
     super(type(self), self).setup_method(method)
     self.u = Upload().wait_until_loaded()
 def setup_method(self, method):
     super(CheckFileUpload, self).setup_method(method)
     self.u = Upload(self.driver).open().wait_until_loaded()
 def setup_method(self, method):
     super(type(self), self).setup_method(method)
     self.u = Upload().wait_until_loaded()