Question
How to handle http authentication in selenium 2.0

Answers

applications had Http authentication for security purpose and need to automate using webdriver. As we know http authentication is not a part of DOM object so we cannot handle it using webdriver. Here is approach to handle such type situation.

We need to pass http credential with URL to skip http popup authentication window. Below is URL format.

http://username:passwork@applicationURL



User above formatted URL in webdriver get method:

driver.get(“http://username:passwork@applicationURL”)



After using above approach, http authentication popup window disappear. But in Internet explorer, it raise error with message “wrong format url”. To accept same type url in internet explorer browser we need to add a DWORD value named exploere.exe and iexplore.exe with value data 0 in below registry. To open registry, open "regeidt" from run command.

1.For all users of the program, set the value in the following registry key:

HKEY_LOCAL_MACHINESoftwareMicrosoftInternet ExplorerMainFeatureControlFEATURE_HTTP_USERNAME_PASSWORD_DISABLE



2.For the current user of the program only, set the value in the following registry key:

HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMainFeatureControlFEATURE_HTTP_USERNAME_PASSWORD_DISABLE



3.If you are using 64 bit machine, set the value in the following registry key:

HKEY_CURRENT_USERSoftwareWOW6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_HTTP_USERNAME_PASSWORD_DISABLE   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Effective performance appraisals are (A)Conducted by competent and well-trained supervisors (B)Designed to focus on an employee's performance (C)Formal and structured (D)All of the above
  • Q Without delivery can you do billing?
  • Q What is the accrual method?
  • Q How IIS identify SharePoint site and ordinary website?
  • Q Describe the “vault hold”?
  • Q Distinguish between Wittgenstein view of ‘picture’ and ‘game’ theory of Language.
  • Q What are the accounting entries for a fully depreciated car?
  • Q Mention the scientific name of Aldabra Giant Tortoise ?
  • Q What is the meaning of the national sales?
  • Q What’s the size to consider that a software project is small, medium or large?
  • Q what is the abbreviation of ITR