-2
誰かが下記の問題で私を助けてくれますか? Naukri.comにログインしてジョブボタンアイコンをクリックして求人検索ページを取得できるウェブマクロを開発しようとしています。私はジョブズをクリックする方法がわからNaukri.comにログインすることができますができませんでした(ページの最上部に存在するジョブのアイコン)は、以下のVBAコードを使用してアイコンをクリックする方法
Sub Naukari_Login()
'https://login.naukri.com/nLogin/Login.php
'Dim ie As SHDocVw.InternetExplorer
'Set ie = New SHDocVw.InternetExplorer
Set ie = CreateObject("InternetExplorer.application")
ie.Visible = True
'ie.navigate "https://www.linkedin.com/m/login/" '‘we are trying to login to askeygeek.com admin page
ie.navigate "https://login.naukri.com/nLogin/Login.php" '‘we are trying to login to askeygeek.com admin page
Do
DoEvents
Loop Until ie.readyState = 4
Call ie.document.getElementById("emailTxt").setAttribute("value", "EmailID")
'‘ EmailID – enter your ‘email ID
Call ie.document.getElementById("pwd1").setAttribute("value", "password")
'‘password - Enter your Naukri .com password
'Call ie.document.getElementById("user_pass").setAttribute("value", "Wankhade")
'''
Set AllInputs1 = ie.document.getElementsByTagName("input") '‘you can use any tagname as you wish For Each hyper_link In AllInputs
For Each hyper_link In AllInputs1
Debug.Print hyper_link.Name
If hyper_link.Name = "Login" Then '‘you can use .name, .id etc
hyper_link.Click
Exit For
End If
Next
'ie.Quit ' close the web page
'Set ie = Nothing
End Sub
はい、それは動作します、すばらしい提案のためにたくさんありました、ちょうどその特定のアイコンをクリックしたいだけでした 1.私はいくつかの組織のウェブサイトにログインして、テクニックはうまくいくのだろうか? (ウェブページへのログイン後、必要なウェブページをナビゲートする) –