Skip to content

Commit ed46780

Browse files
committed
pytest web working with selenium 4 - wa added
1 parent 93a20a6 commit ed46780

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mac/device-machine-allocation.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ pick_terminal_devices() {
119119
bVersionLiteral=""
120120
mod=$(( i % 4 ))
121121

122+
local hardcodedBVersion=140 # python doesn't support dynamic latest versioning yet
123+
122124
if [ $((i % 4)) -ne 0 ]; then
123125
bVersionLiteral="-$mod"
124126
else
@@ -133,7 +135,7 @@ pick_terminal_devices() {
133135
else
134136
yaml+=" - osVersion: $prefixEntry
135137
browserName: $suffixEntry
136-
browserVersion: $bVersion
138+
browserVersion: $(( hardcodedBVersion-i ))
137139
"
138140
fi
139141

mac/env-setup-run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ setup_web_python() {
203203
detect_setup_python_env
204204

205205
pip3 install -r requirements.txt >> "$NOW_RUN_LOG_FILE" 2>&1
206+
pip3 uninstall -y pytest-html pytest-rerunfailures >> "$NOW_RUN_LOG_FILE" 2>&1
206207
log_success "Dependencies installed"
207208

208209
# Update YAML at root level (browserstack.yml)

0 commit comments

Comments
 (0)