Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
bda34a7
fixed mypy errors in switch_to file and relative locator file
rpallavisharma Sep 8, 2025
c911b18
stored frame into another var and passed that in exception
rpallavisharma Sep 9, 2025
7288b92
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 9, 2025
e1af0c3
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 10, 2025
f9f7abd
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 11, 2025
673582d
Merge branch 'trunk' into Fix15697-5
cgoldberg Sep 15, 2025
06d3045
moved the bytype at module level, fixed the imports, reverted the ret…
rpallavisharma Sep 17, 2025
d2f22ce
reverted return type, moved bytype to module level, added by import
rpallavisharma Sep 17, 2025
712aeec
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 17, 2025
2139b51
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 18, 2025
afab8bf
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 19, 2025
e274a60
Merge branch 'trunk' into Fix15697-5
cgoldberg Sep 23, 2025
185ad89
reverted frame exception obj, changed type from str to Any in the com…
rpallavisharma Sep 24, 2025
f456910
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 27, 2025
01a88c8
Merge branch 'trunk' into Fix15697-5
rpallavisharma Sep 29, 2025
84c18ba
Merge branch 'trunk' into Fix15697-5
rpallavisharma Oct 3, 2025
a46a37a
Merge branch 'trunk' into Fix15697-5
rpallavisharma Oct 11, 2025
63f26eb
Merge branch 'trunk' into Fix15697-5
rpallavisharma Oct 14, 2025
0043264
Merge branch 'trunk' into Fix15697-5
rpallavisharma Oct 17, 2025
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
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/switch_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def frame(self, frame_reference: Union[str, int, WebElement]) -> None:
try:
frame_reference = self._driver.find_element(By.NAME, frame_reference)
except NoSuchElementException as exc:
raise NoSuchFrameException(frame_reference) from exc
raise NoSuchFrameException(str(frame_reference)) from exc

self._driver.execute(Command.SWITCH_TO_FRAME, {"id": frame_reference})

Expand Down
4 changes: 2 additions & 2 deletions py/selenium/webdriver/support/relative_locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from typing import NoReturn, Optional, Union, overload

from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.by import By, ByType
from selenium.webdriver.common.by import ByType
from selenium.webdriver.remote.webelement import WebElement


Expand Down Expand Up @@ -48,7 +48,7 @@ def with_tag_name(tag_name: str) -> "RelativeBy":
warnings.warn("This method is deprecated and may be removed in future versions. Please use `locate_with` instead.")
if not tag_name:
raise WebDriverException("tag_name can not be null")
return RelativeBy({By.CSS_SELECTOR: tag_name})
return RelativeBy({"css selector": tag_name})


def locate_with(by: ByType, using: str) -> "RelativeBy":
Expand Down