Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/vws_web_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,18 +969,16 @@ def get_license_details(
),
)

long_wait.until(
# Use the value the wait returned rather than reading the element
# again: the wait only returns a non-empty key, but a second read
# can land after a re-render and see an empty box.
license_key = long_wait.until(
method=lambda d: d.find_element(
by=By.CLASS_NAME,
value="license-key-box",
).text.strip(),
)

license_key = driver.find_element(
by=By.CLASS_NAME,
value="license-key-box",
).text.strip()

return {
"license_name": license_name,
"license_key": license_key,
Expand Down