How can Login dialog accessed

The web page I am testing displays the Login dialog. How can I access this dialog?

E

Expert

Verified

When opening several pages, you may observe a Login dialog where you must enter the user name and password so as to access the page or the browser may display the Information bar asking for your permission to do certain actions requested through the page. When you test these types of pages, you require writing code that will as:

a. Open the page.

b. Close the Login dialog or Information bar through simulating user actions over them.

c. Wait till the page is loaded. See that the Page.ToUrl method, that is used to open pages, doesn’t return the execution control to the script till the specified page is loadedconversely, it does not return the execution control till the Login dialog or Information bar is closed. For closing the dialog and informative message you must simulate user actions which will close the dialog and the bar. Nonetheless, you cannot do this because the ToUrl method doesn’t return the control till the dialog and the bar are closed. For working around the problem, you can employ any of the following approaches:
• Enter the page’s URL in the Address bar or in the File | Open dialog of your web browser as for illustration, using the Keys method).
• Utilize the Navigate or Navigate2 methods of the page object (it is only valid for pages displayed in a WebBrowser control or Internet Explorer).
• Call the Page.ToUrl method by using the Runner.CallObjectMethodAsync method.

   Related Questions in Programming Languages

  • Q : Define Identifiers Define Identifiers

    Define Identifiers and their naming convention in brief?

  • Q : Explain features of XSLT programmer Do

    Do you feel that you are a good Extensible Style Sheet Language Transformations programmer?

  • Q : Define the term Interface inheritance

    Interface inheritance: Whenever a class implements an interface, the interface inheritance relationship exists among them. The class inherits no implementation from interface, just method signatures and static variables. It is as well possible for one

  • Q : Calculating Tax on an Order in SQL

    Process the following steps to make a procedure to compute the tax on an order. The BB_TAX table includes the states which need taxes to be submitted for Internet sales. When the state is not listed in the table, then no tax must be accessed on any order. Shopper&rsqu

  • Q : Write a program to display its negative

    Write a program in object code that reads a single digit decimal number and displays its negative in binary.  To do this, you must first read the number as a character and then convert it to its numeric value, as discussed in class.  Then, you're going to change this to a negative numbe

  • Q : Explain in process verses out of

    Explain in process verses out of process component.

  • Q : Use of System Dynamic and System Runtime

    What is the use of System.Dynamic and System.Runtime.CompilerServices namespaces?

  • Q : Explain different cursors types in ADO

    What are the different cursors types in ADO and illustrated them?

  • Q : Define the term Sibling sub classes

    Define the term Sibling sub classes: Classes which have similar immediate super-class.

  • Q : Programming with C# QUESTION 1      

    QUESTION 1       The following UML diagram describes an abstract class Customer. This class is to be used as part of a Company's inventory system. The inventory system will contain many different types of customers.  A separate s

©TutorsGlobe All rights reserved 2022-2023.