How to Automate webpages using Opera Browser

时间:2016-12-09 12:58:24

标签: vba selenium automated-tests autoit excel-vba-mac

I have Website only compatible with Opera and to automate this I have options like VBA macro, AutoIT etc.

I used a VBA macro with Selenium WebDriver but ended up only opening the browser. No further actions were possible. Can anybody share some code for VBA or AutoIt for automating the opera browser? Here is my VBA code got from the web:

Public Sub seleniumtutorial()
Dim bot As New WebDriver

bot.Start ["opera"], "www.google.com"

bot.baseUrl ("www.google.com")

bot.TakeScreenshot.SaveAs (ActiveWorkbook.Path + "/screenshot.jpg")
bot.Quit 'Quit method for closing browser instance.

End Sub

0 个答案:

没有答案