Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Medvedev committed Dec 21, 2023
1 parent 813df8c commit aa54510
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/click_elements.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

from .fake_webapp import EXAMPLE_APP


class ClickElementsTest:
def test_click_links(self):
self.browser.links.find_by_text("FOO").click()
Expand Down
2 changes: 1 addition & 1 deletion tests/form_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import pytest

from splinter.exceptions import ElementDoesNotExist
from .fake_webapp import EXAMPLE_APP
from splinter.exceptions import ElementDoesNotExist


def skip_if_zope(f):
Expand Down
9 changes: 5 additions & 4 deletions tests/test_webdriver_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import unittest
from urllib.request import urlopen
from unittest.mock import patch
from urllib.request import urlopen

import pytest

Expand Down Expand Up @@ -143,7 +143,7 @@ def test_can_fill_more_than_one_field_in_form(self):
"query": "another new query",
"description": "Just another description value in the textarea",
"gender": "M",
#"uf": "rj",
# "uf": "rj",
"some-check": True,
"checked-checkbox": False,
},
Expand All @@ -153,12 +153,12 @@ def test_can_fill_more_than_one_field_in_form(self):
desc_value = self.browser.find_by_name("description").value
self.assertEqual("Just another description value in the textarea", desc_value)
self.assertTrue(self.browser.find_by_id("gender-m").checked)
#self.assertTrue(self.browser.find_option_by_value("rj").selected)
# self.assertTrue(self.browser.find_option_by_value("rj").selected)
self.assertTrue(self.browser.find_by_name("some-check").checked)
self.assertFalse(self.browser.find_by_name("checked-checkbox").checked)

# ------- BEGIN OF CLICK PROBLEM TESTS -------
#https://stackoverflow.com/questions/77388720/automation-testing-with-selenium-click-doesnt-works-on-new-safari-17-ios-sonoma
# https://stackoverflow.com/questions/77388720/automation-testing-with-selenium-click-doesnt-works-on-new-safari-17-ios-sonoma
@pytest.mark.xfail
def test_click_element_by_css_selector(self):
super().test_click_element_by_css_selector()
Expand Down Expand Up @@ -212,4 +212,5 @@ def test_simple_type(self):
@pytest.mark.xfail
def test_simple_type_on_element(self):
super().test_simple_type_on_element()

# ------- END OF TYPE PROBLEM TESTS -------

0 comments on commit aa54510

Please sign in to comment.