×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Open URL in new IE Window without Address Bar and enter Login Details

Open URL in new IE Window without Address Bar and enter Login Details

Open URL in new IE Window without Address Bar and enter Login Details

(OP)
I'm trying to write a VB Script to open the following URL:

https://test-www.tax.service.gov.uk/api-test-login...

I've got two problems. Firstly my script just opens a new Tab in an existing IE, with Address Bar etc. I'd like it to open a New Window without the AddressBar, StatusBar, ToolBar, MenuBar etc.

Secondly I'd like the two input boxes to be filled in (and better still would be to fill them in and click submit).

I've written the below code but the only bit that works is to open the URL (which will be a variable).

CODE --> VBSCRIPT

set vURL = "https://test-www.tax.service.gov.uk/api-test-login/sign-in?continue=%2Foauth%2Fgrantscope%3Fauth_id%3D5ac74dbb260000260070a36b&origin=oauth-frontend"
  Set ieApp = CreateObject("Internetexplorer.Application")
    ieApp.Visible = True
    ieApp.Navigate vURL.GetContent.String
    ieApp.AddressBar = 0
    ieApp.StatusBar = 0
    ieApp.Toolbar = 0
    ieApp.MenuBar = 0
    ieApp.Height = 500
    ieApp.Width = 400
          
    With ieApp.Document
    .getElementByID("userId").value = "testing"
    .getElementByID("password").value = "testpass"
'    .getElementByID("form").submit
  End With 

n.b. I'm doing this in QlikView which has a VB Script element.

RE: Open URL in new IE Window without Address Bar and enter Login Details

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Toolbar = False
objIE.MenuBar = False
objIE.StatusBar = False
objIE.Navigate HtmlURL

This is a fragment from something I use, it opens in a new window without the bars. I'm not sure about your usage of GetContent.String, that seems to be the difference.

Fred

RE: Open URL in new IE Window without Address Bar and enter Login Details

> GetContent.String,

Looks like Qlik ...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close