我想通过创建一个在操作中调用的函数来自动执行 Flipkart 的登录过程
Function Website() 'this is the function
Systemutil.Run("iexplore.exe"), "http://www.flipkart.com"
End Function
Website(
) '这是在操作中调用函数的地方
浏览器正在打开,但我不知道如何在不进行记录和运行的情况下单击登录,而只能通过代码和函数。
请帮我。
如果您想通过描述性编程来完成此操作,这将是一个简单的示例:
(我使用直接登录页面,因为它比单击该登录链接更容易)
Website()
Function Website()
Systemutil.Run("iexplore.exe"), "https://www.flipkart.com/account/login?from=header"
set objPage = Browser("title:=Flipkart.com: Login.*").Page("title:=Flipkart.com: Login.*")
objPage.Sync()
objPage.WebEdit("html id:=login_email_id1").Set "UsernameXY"
objPage.WebEdit("html id:=login_password1").Set "SecretPassword"
objPage.WebButton("html id:=login-cta").Click()
End Function
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)