Skip to content

Commit 2e49569

Browse files
feat!: Update selenium dependency to 4.12 (#908)
BREAKING CHANGE: The minimum supported Python version set to 3.8 BREAKING CHANGE: The minimum supported selenium version set to 4.12
1 parent d5b84b8 commit 2e49569

File tree

11 files changed

+11
-46
lines changed

11 files changed

+11
-46
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python ${{ matrix.python-version }}

Pipfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ pytest = "~=7.4"
1616
pytest-cov = "~=4.1"
1717
python-dateutil = "~=2.8"
1818
tox = "~=4.8"
19-
typing-extensions = "~=4.7"
2019
types-python-dateutil = "~=2.8"
2120

2221
[packages]
23-
selenium = "~=4.11"
22+
selenium = "~=4.12"

appium/options/common/supports_capabilities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
from typing import Any, TypeVar
19-
20-
from appium.protocols.protocol import Protocol
18+
from typing import Any, Protocol, TypeVar
2119

2220
T = TypeVar('T')
2321

appium/protocols/protocol.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

appium/protocols/webdriver/can_execute_commands.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import Dict, Union
15+
from typing import Dict, Protocol, Union
1616

1717
from selenium.webdriver.remote.remote_connection import RemoteConnection
1818

19-
from ..protocol import Protocol
20-
2119

2220
class CanExecuteCommands(Protocol):
2321
command_executor: RemoteConnection

appium/protocols/webdriver/can_execute_scripts.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import Any, List, Optional
16-
17-
from ..protocol import Protocol
15+
from typing import Any, List, Optional, Protocol
1816

1917

2018
class CanExecuteScripts(Protocol):

appium/protocols/webdriver/can_find_elements.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import TYPE_CHECKING, Dict, List, Union
16-
17-
from ..protocol import Protocol
15+
from typing import TYPE_CHECKING, Dict, List, Protocol, Union
1816

1917
if TYPE_CHECKING:
2018
from appium.webdriver.webelement import WebElement

appium/protocols/webdriver/can_remember_extension_presence.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import TypeVar
16-
17-
from ..protocol import Protocol
15+
from typing import Protocol, TypeVar
1816

1917
T = TypeVar('T')
2018

appium/webdriver/switch_to.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import TYPE_CHECKING, Optional, cast
15+
from typing import TYPE_CHECKING, Optional, Protocol, cast
1616

1717
from selenium.webdriver.remote.switch_to import SwitchTo
1818

19-
from appium.protocols.protocol import Protocol
2019
from appium.protocols.webdriver.can_execute_commands import CanExecuteCommands
2120

2221
from .mobilecommand import MobileCommand

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
classifiers=[
3636
'Development Status :: 5 - Production/Stable',
3737
'Programming Language :: Python',
38-
'Programming Language :: Python :: 3.7',
3938
'Programming Language :: Python :: 3.8',
4039
'Programming Language :: Python :: 3.9',
4140
'Programming Language :: Python :: 3.10',
@@ -50,5 +49,5 @@
5049
'Topic :: Software Development :: Quality Assurance',
5150
'Topic :: Software Development :: Testing',
5251
],
53-
install_requires=['selenium ~= 4.1'],
52+
install_requires=['selenium ~= 4.12'],
5453
)

0 commit comments

Comments
 (0)