I can not get into the "main2" frame. VBA and SelleniumWrapper

0

I'm trying to access a web page and manipulate its controls via VBA and Selennium Wrapper , however, these controls are within a frame with " name = main2 ", follow the VBA:

Sub z()
Dim objCollection
    Dim numeroPregao, dataAssinatura, uasg, item, val, m
    Dim c As Integer
    Dim ULogin As Boolean, ieForm
    Dim MyPass As String, MyLogin As String
    Dim driver As New SeleniumWrapper.WebDriver


    driver.Start "chrome", "http://comprasnet.gov.br"
    driver.setImplicitWait 5000
    driver.Open "/acesso.asp?url=/Livre/Ata/ConsultaAta00.asp"


    driver.SwitchToFrame ("main2")
    driver.FindElementByName("dt_ini").SendKeys "25/11/2015"



End Sub

Thank you in advance! Merry Christmas and a Happy New Year to all!

    
asked by anonymous 23.12.2016 / 17:58

1 answer

0

I was able to select the frame and make the interaction, the code looks like this:

Set objCollection = driver.findElementByCssSelector("frame[name='main2']")
    driver.SwitchToFrame (objCollection)

    driver.FindElementByName("dt_ini").SendKeys "25/11/2015"
    
26.12.2016 / 17:11