0

1632 Commits

Author SHA1 Message Date
Diego Molina
bb7dfdc046 [build] Using correct file name when bumping versions
Fixes 

NOKEYCHECK=True
GitOrigin-RevId: 7cbfdbdaf2e7763144e02c894777679a2eb36c5a
2023-12-12 02:00:48 -08:00
Oboleninov Anton
08dd4cf456 [py] Add page load strategy enum ()
Fixes 

NOKEYCHECK=True
GitOrigin-RevId: 68b92607f4629e6406f6611b56a7e08fb9cfdba5
2023-12-08 05:37:33 -08:00
titusfortner
64a39d3185 [py] update driver constructor typing
NOKEYCHECK=True
GitOrigin-RevId: 5494e07f6219d11ee76634670df01f808e423c2f
2023-11-30 17:42:44 -08:00
titusfortner
fbd06ebce5 [py] update chromium driver constructors for readability
NOKEYCHECK=True
GitOrigin-RevId: e91ba2109e59615d9c5ee0cac220d8444f6cab2f
2023-11-30 17:42:40 -08:00
titusfortner
0ec56c3bc7 [py] ensure all drivers stop service during driver quit
NOKEYCHECK=True
GitOrigin-RevId: d7291fd2f55bade987bcb0a896f9981540458965
2023-11-30 17:42:36 -08:00
titusfortner
38907ac7e1 [py] remove deprecated quiet parameter from Safari service constructor
NOKEYCHECK=True
GitOrigin-RevId: b1aae606f086767a96a7f52a2e78adf2eeddd81d
2023-11-30 17:42:31 -08:00
titusfortner
f8e388239d [py] remove deprecated reuse_service parameter from Safari driver constructor
NOKEYCHECK=True
GitOrigin-RevId: 64aea82b51bea153fcb70989e411d164183999f8
2023-11-30 17:42:26 -08:00
titusfortner
ac3f0868d7 [py] remote webdriver cannot match Chromium browser name for remote connection
NOKEYCHECK=True
GitOrigin-RevId: acbf749d84553ba445e73c2f8ef188c692a5cba9
2023-11-30 17:42:14 -08:00
Johnny.H
a14f4c5008 Close trio memory channel sender after the driver is quit ()
* fix typing bug

* fix: 

---------

Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
NOKEYCHECK=True
GitOrigin-RevId: 2008e1004ce7f1e3be4591a777124096a7d5f61c
2023-11-26 18:30:04 -08:00
titusfortner
a6913e1fdc [py] fix doc formatting
NOKEYCHECK=True
GitOrigin-RevId: 8a73dd2917251cfeb1128beaeecca30d117ae98c
2023-11-26 14:38:40 -08:00
titusfortner
d4ebc2cc75 [py] fix failing linter
NOKEYCHECK=True
GitOrigin-RevId: 83348f41477db7e82c5e1aa6df9705504a468502
2023-11-26 12:29:18 -08:00
titusfortner
3331fa4832 [py] allow bsd operating systems to use the linux binary
Log warning that it may not be supported
Throw exception if the OS is not supported
See: 
NOKEYCHECK=True
GitOrigin-RevId: 5a7a2ac896d606dc8d315b2f77c20eb8dcbf3024
2023-11-26 11:10:56 -08:00
Anthony Sottile
31fd34d155 don't leak a file descriptor to os.devnull by default ()
* don't leak a file descriptor to os.devnull by default

since this is passed along to subprocess directly we can use the subprocess constants still

regression in 

* adjust condition for closing as well

NOKEYCHECK=True
GitOrigin-RevId: eb0a32195277dfb6f058ce7ed6cd16322bd36067
2023-11-17 06:56:02 -08:00
titusfortner
5cf5cde409 [py] fix black and flake8 linting issues
NOKEYCHECK=True
GitOrigin-RevId: db507155fd42156a504ec9ca4eda374b7f903ee0
2023-11-13 02:59:40 -08:00
AutomatedTester
ec8b905adf [py] clean up of usage of executable path in services
NOKEYCHECK=True
GitOrigin-RevId: e34220cdc58aa6d21b51a569acfb77d5179392da
2023-11-10 07:44:24 -08:00
AutomatedTester
a751fda91b [py] Correct usage of Executable Path in Service
NOKEYCHECK=True
GitOrigin-RevId: 8ea43183bb57e32efcb43f431364557837871408
2023-11-10 03:42:59 -08:00
pinterior
c3d21b3425 py: fix WebDriverWait type hints for WebElement ()
* fix type hint of WebDriverWait to accept WebElement

* fix some type hint of expected_conditions to accept WebElement

* linting

---------

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
NOKEYCHECK=True
GitOrigin-RevId: 10adfe88a2b2870e3e61546b9e2a9233c9f74657
2023-11-09 01:58:57 -08:00
titusfortner
c428dc827d [py] add more logging to driver startup
NOKEYCHECK=True
GitOrigin-RevId: 2621f825cb8a63131a8760ca0d0562f52d5ddda7
2023-11-05 10:22:58 -08:00
titusfortner
9e656ab629 [py] fix linter
NOKEYCHECK=True
GitOrigin-RevId: 6f7c5acc9fab9bfb10955a20356fd947993b5d67
2023-11-05 10:01:39 -08:00
titusfortner
8a9c697031 [py] update change log and versions for 4.15.2
NOKEYCHECK=True
GitOrigin-RevId: 7247f8488253437c974ccca5d72665caf2cd6ce1
2023-11-03 14:43:21 -07:00
titusfortner
c00eff9eac [py] fix bug where downloaded file was not getting unzipped
NOKEYCHECK=True
GitOrigin-RevId: 18cd122cc133c50266e7e9fa5d8ab9d20b2c88eb
2023-11-03 14:43:15 -07:00
titusfortner
0d38d9f44c [py] update change log and versions for 4.15.1
NOKEYCHECK=True
GitOrigin-RevId: 385f96fe7ecc248662444754241a319d9cdb7bbe
2023-11-02 09:03:58 -07:00
titusfortner
50868f2898 [py] fix bug in using SE_MANAGER_PATH
NOKEYCHECK=True
GitOrigin-RevId: 186b03aa26205385dfc9c2647e37ae2cbd44f07e
2023-11-02 09:03:53 -07:00
titusfortner
16e47c32e5 [py] fix inadvertent code change in mutation_event
NOKEYCHECK=True
GitOrigin-RevId: e7d4e26c572fd611d5638c530fdfccb0045cc89c
2023-11-02 09:03:48 -07:00
Titus Fortner
ee75649ff8 [py] implement file downloads ()
* [py] download file do not return a string

* [py] require enabling downloads

NOKEYCHECK=True
GitOrigin-RevId: 605fccda42c7ae7858ba582204080e138c7900d4
2023-10-31 21:21:00 -07:00
titusfortner
9029d065be [py] remove selenium manager accommodation for Conda
Code did not work as desired  &  and a better solution now available

NOKEYCHECK=True
GitOrigin-RevId: 566db8570144b59c22c7235550a84b3773edc7fc
2023-10-31 21:15:13 -07:00
pinterior
0f793e8d94 [py] add some type hints to selenium.webdriver.support ()
NOKEYCHECK=True
GitOrigin-RevId: 61ea36ee135fc72b0909e306d9fc05b2f083b784
2023-10-31 03:21:55 -07:00
titusfortner
19ff9700a9 [py] fix misspellings and spacing
NOKEYCHECK=True
GitOrigin-RevId: 0d04d2ed540ad1ec91264a1deffd655864d919f5
2023-10-22 16:17:54 -07:00
titusfortner
aed7d5a0ed [py] do not set browser binary in selenium manager if it is an empty string ()
NOKEYCHECK=True
GitOrigin-RevId: fe4bc76f71bdca7adb3a09fa9af1bf144c40a9e4
2023-10-16 08:22:15 -07:00
symonk
7c58e3689f [py]: Return a pathlib.Path when SE_MANAGER_PATH is set. closes
NOKEYCHECK=True
GitOrigin-RevId: d9f0010403fc2e1b50f0da3a6224be7da71108dc
2023-10-11 09:55:47 -07:00
titusfortner
148aafabe0 update all versions to 4.14
NOKEYCHECK=True
GitOrigin-RevId: e5a96349cea553359d2ad38d0e85c2b1f9928265
2023-10-09 19:59:09 -07:00
Alexey Pelykh
9a7e5bb531 Fix dangling log_output in Service ()
The isinstance check was faulty and checked wrong type

Fixes 

NOKEYCHECK=True
GitOrigin-RevId: 9bf2950ced56caa7532849505153c2ca6aae5f33
2023-10-05 07:02:21 -07:00
symonk
5a8eb7d498 [py]: use lazy string interpolation for logging calls
NOKEYCHECK=True
GitOrigin-RevId: 2ffb772261814d36375f210033bd5ec9f78663e0
2023-10-02 13:12:33 -07:00
titusfortner
e20eb82b98 update versions and change logs for 4.13
NOKEYCHECK=True
GitOrigin-RevId: 3b7b377d58b62931438bb079bc44a39a182a4194
2023-09-25 11:21:55 -07:00
Titus Fortner
622fb26891 Look for Selenium Manager in path defined by Environment Variable ()
This allows people to build or download the binary as necessary and place it in any directory

NOKEYCHECK=True
GitOrigin-RevId: e5ce6fd8c14fdb07c4ea22478ffb95eb45d64ebc
2023-09-24 16:49:27 -07:00
titusfortner
beeb708aa6 [py] fix linting failures
NOKEYCHECK=True
GitOrigin-RevId: 741e9f6f6a71528cc548c300df54893f818ea126
2023-09-17 20:17:25 -07:00
titusfortner
bca3f4e945 [py] firefox profiles can not be deprecated yet
NOKEYCHECK=True
GitOrigin-RevId: 1c59653fc07c69edc5a4f310de54d75f40b093dc
2023-09-17 15:46:41 -07:00
titusfortner
8075ae8cb1 [py] chromium service log file name should always use args
Chrome Logging Preferences require logging to be enabled with --log-path

NOKEYCHECK=True
GitOrigin-RevId: 377f832cc875b80117e6918e755dbd00c82f7e30
2023-09-17 15:46:36 -07:00
titusfortner
ca83556a4d [py] remove deprecated log_file methods
NOKEYCHECK=True
GitOrigin-RevId: edf28c1b86f004092d5d451f3e5f02ae2087b567
2023-09-17 15:46:28 -07:00
titusfortner
27f2c4b669 [py] remove deprecated headless methods
NOKEYCHECK=True
GitOrigin-RevId: b5cfcc4f9c51dd9df9106b62971c417a0fc9a5e4
2023-09-17 14:09:46 -07:00
Sandeep Suryaprasad
5f89b78281 [py] refactored by removing duplicate code in PR12715 ()
NOKEYCHECK=True
GitOrigin-RevId: c80ce4d2874efaaec8cbb3a745fa83e8d69fc55d
2023-09-16 17:35:16 -07:00
Jiahua Fan
05184f9df4 [py] disable console appearing on windows when running in pythonw ()
Co-authored-by: JefferyVin <jefferyfan@Hifo>
NOKEYCHECK=True
GitOrigin-RevId: d78a8ec61a8c8a9e2551ed83dfdf6b3ab4da837c
2023-09-16 04:57:13 -07:00
Sean Gomez
abce6313b0 [py] close out logging on quit ()
* Update webdriver to close geckodrive log_output process on quit

* add conditional to close log_output whether it be type int or if it's a file-like object

* [py] move closing logic to common driver service

---------

Co-authored-by: titusfortner <titus.fortner@gmail.com>
NOKEYCHECK=True
GitOrigin-RevId: ed7ca49f152f8b91b3e3c0e040b26ce1a41ee5f8
2023-09-16 04:57:05 -07:00
Titus Fortner
f7784fb810 [py] do not send parameters in payload that are used in endpoint ()
NOKEYCHECK=True
GitOrigin-RevId: 14e43b158a3ae4846e67d74f0ec17f72c9187e2b
2023-09-15 19:12:48 -07:00
titusfortner
a3b732038e update versions and changelogs for 4.12.0
NOKEYCHECK=True
GitOrigin-RevId: 249f2a7d1bbe1aa972006f15088e7b7db000df94
2023-08-31 09:08:06 -07:00
Simon K
709425aaad Drop py37 support ()
* [py]: Upgrading syntax to be `python3.8+`

* [py]: Upgrade infrastructure for `python3.8+`

* [py] Remove accidental commit of pre commit config used for upgrading

* [py]: Remove py37 classifiers from bazel python packaging recipes

* [py]: Apply `flake8` with py3.8 - update docstrings inline with `PEP-257`

* [py]: Use more python3.8+ syntax

* [py]: Remove old python3.7 comments in code

* [py] Apply more python3.8+ type hints

* [py]: Fix conflicts and make `CHANGES` accurate

---------

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
NOKEYCHECK=True
GitOrigin-RevId: 98d464061004eefd1c4c238ec42a91f4e59a232f
2023-08-28 01:17:22 -07:00
Sandeep Suryaprasad
8445e47f9e [py] moved safari options to descriptor class ()
NOKEYCHECK=True
GitOrigin-RevId: bc8ff4f36da1030862dede3775dc5d47aa06e23c
2023-08-16 07:39:59 -07:00
titusfortner
ec0a16a5e7 [py] fix linter error
NOKEYCHECK=True
GitOrigin-RevId: 51ad5462a8552a3ed3d7f27ee7946cb64b7f418c
2023-08-15 06:31:35 -07:00
Palmer Bandy
014a287b20 [py] Update timeouts.py docstrings ()
* [py] Update docstrings in timeouts.py

* [py] Fix linting

* [py] Implement PR feedback; additional updates to conform more to PEP 257

* [py] Specify that timeouts are in seconds

NOKEYCHECK=True
GitOrigin-RevId: e7386ce797ceb3e51c05ef7d6a653b6724986971
2023-08-15 04:53:03 -07:00
stevetracvc
ec0f2586f8 fix for conda install of selenium-manager ()
* fix for conda install of selenium-manager

conda doesn't seem to properly package selenium-manager, so it needs
to be install as a separate package (via conda). But this puts it in
the environment's bin folder.

This commit checks the path for the selenium-manager executable if
it isn't installed in the package's webdriver/common/<platform>/
folder.

fixes  and 

* fix linting error

* use conda bin folder, rather than searching PATH

* fix for tox/linting error

NOKEYCHECK=True
GitOrigin-RevId: d4285d1f26acfd96ee77afbc5e9771b76433559b
2023-08-15 04:38:25 -07:00