--%>

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 : Functions of Interrupts and system calls

    What are the various functions of Interrupts and system calls?

  • Q : Give some instances of XML DTDs or

    Give some instances of XML DTDs or schemas which you have worked with?

  • Q : Explain a way to install JAVA S60 device

    What should I do when installation fails whilst trying to install a Java™ Verified application to a certain S60 device?

  • Q : Define the term XML Canonicalization

    Define the term XML Canonicalization?

  • Q : Detecting sequence in signal line

    Explain how to detect a sequence of ‘1101’ arriving serially from the signal line?

  • Q : What is Pop-up menu Pop-up menu : A

    Pop-up menu: A menu of actions which is generally not visible on the screen till a mouse button is clicked. The Popup menus assist to keep a user interface from becoming cluttered.

  • Q : Define Thread Thread : It is a

    Thread: It is a lightweight procedure which is managed by the Java Virtual Machine (abbreviated as JVM). Support for threads is given by the Thread class in java.lang package.

  • Q : Explain why java is so important for

    The internet aided java to the forefront of programming. And java consequently has had a deep effect on the internet. The reason for this is highly simple: java uses the universe of objects that can travel freely in cyber space. In a network, two broad categories of

  • Q : Define Well-known port Well-known port

    Well-known port: It is a port number at which a server provides a familiar service. For example, 80 is well-known port number for the servers employing the HyperText Transfer Protocol (abbreviated as HTTP).

  • Q : What is Universal Character Set or UTF

    UTF: Universal Character Set (abbreviated as UCS) Transformation Format. The format for symbolizing multibyte characters which is compatible with programs and file systems which were only made to handle single byte characters.