Repository navigation
Commit c8064e3
fix(Puppeteer): simplify switchTo iframe by selector (#1974)
switchTo did not work as expected in some situations, because
the lookup code did not consider every possibility.
However, given a ElementHandle, the corresponding frame can
be fetched directly using Puppeteer API.
This allows to remove a lot of code and should still work
as expected.
Fixes: #14391 parent d95f312 commit c8064e3
1 file changed
Lines changed: 3 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
| 1918 | + | |
1918 | 1919 | | |
1919 | | - | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
1928 | | - | |
| 1920 | + | |
| 1921 | + | |
1929 | 1922 | | |
1930 | 1923 | | |
1931 | 1924 | | |
| |||
2028 | 2021 | | |
2029 | 2022 | | |
2030 | 2023 | | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | 2024 | | |
2051 | 2025 | | |
2052 | 2026 | | |
| |||
0 commit comments