SELENIUM WEBDRIVER - IFRAME
Publicado por Jose (14 intervenciones) el 16/06/2021 15:05:02
Hola,
Estoy tratando de conectarme a un iframe pero no lo consigo. Estoy utilizando selenium y chrome. Tengo el siguiente codigo:
Obtengo un error en la linea " .SwitchToFrame .FindElementByCss("iframe", timeout:=5000)"
Me dice da el siguiente error:
Se ha producido el error 13 en tiempo de ejecución:
UnknownError
unkonwnerror: call function result missing 'value'
(Session info: chroome=91.4472.101)
(Driver Info: chromedriver=2.33.506120, platform=windows)
Estoy tratando de conectarme a un iframe pero no lo consigo. Estoy utilizando selenium y chrome. Tengo el siguiente codigo:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Sub Test()
Const link As String = "https://www.rosterresource.com/mlb-schedule-grid/"
Dim posts As Object, post As Object, elem As Object, R&, C&
With New ChromeDriver
.Get link
.SwitchToFrame .FindElementByCss("iframe", timeout:=5000)
.SwitchToFrame .FindElementByCss("iframe#pageswitcher-content", timeout:=5000)
For Each posts In .FindElementsByCss("table.waffle tr")
For Each elem In posts.FindElementsByCss("td")
C = C + 1: Cells(R + 1, C) = elem.Text
Next elem
R = R + 1: C = 0
Next posts
.Quit
End With
end sub
Obtengo un error en la linea " .SwitchToFrame .FindElementByCss("iframe", timeout:=5000)"
Me dice da el siguiente error:
Se ha producido el error 13 en tiempo de ejecución:
UnknownError
unkonwnerror: call function result missing 'value'
(Session info: chroome=91.4472.101)
(Driver Info: chromedriver=2.33.506120, platform=windows)
Valora esta pregunta


0