• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Meta http ! Help

X.23

New Member
Hi all. There is a website with a login form and I want to automate it with excel vba but every time I execute the code the website redirects directly to google and does not give me any chance and I think it is because of this code in its html

Code:
<noscript><meta http-equiv="refresh" content="0; url=http://www.google.com/" /><noscript>


So can you help me solve this problem. Please

Code:
Sub Amatti()

Dim GC As New WebDriver

GC.Start "chrome", ""

GC.Get "https://amatti.education.gov.dz/login"

GC.FindElementById("holder").WaitDisplayed

End Su
 
Hi,​
as your code does not exist within standard VBA so you may have more chance on a specific forum according to the 'tool' you use …​
 
Try:-
Code:
Sub Amatti()

Dim options As New ChromeOptions
options.AddArgument "--disable-javascript"

Dim GC As New WebDriver
GC.Start "chrome", "", options

GC.Get "https://amatti.education.gov.dz/login"

GC.FindElementById("holder").WaitDisplayed

End Sub
Same error
 
Back
Top