question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

httpCredentials with $variable is not working

See original GitHub issue

When using the following code, the credential variables are not resolved and the variable name is used instead of actual value:

    ${user}    Set Variable    myuser
    ${pw}    Set Variable    mypassword
    New Browser    chromium  headless=false
    New Context    httpCredentials={'username': '$user', 'password': '$pw'}

I tested this by temporarily disabling _mask_credentials function.

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
aaltatcommented, Jun 4, 2021

Found the bug, good catch.

1reaction
allcontributors[bot]commented, Jun 4, 2021

@aaltat

I’ve put up a pull request to add @adrian-evo! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow Fill,Type Text to resolve variables too #1013 - GitHub
In SeleniumLibrary if one wants to debug issues, one needs to raise ... Robot Framework that the unresolved variables do not work correctly....
Read more >
Environment variable not working with GCP- Windows 10
Setting up the variable using the command prompt: set GOOGLE_APPLICATION_CREDENTIALS=[path]; Setting up the variable using the anaconda power ...
Read more >
Environment variables for the AWS SDK for Rust
Set this environment variable to support your own HTTP credentials loader. AWS_CONTAINER_CREDENTIALS_RELATIVE_URI. Relative URI for the ECS/HTTP credentials ...
Read more >
Use HTTP authentication - Progress Documentation
The Credentials class constructor takes three parameters: domain, username, and password. USING OpenEdge.Net.HTTP.Credentials. DEFINE VARIABLE oCredentials AS ...
Read more >
Browser Library : Single Sign on - Robot Framework
Hi Experts, I am using Browser Library and opening a new context by passing the username and password in httpcredentials. and able to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found