Skip to content

self.type does not work with ie #723

@bschollnick

Description

@bschollnick

The following code, works under firefox, and chrome. Under IE 11 (specifically 11.1082.18362.0), it simply fails. Reporting that the input#UserName element does not exist.

2020-10-23 12_39_39-LK Archive - Internet Explorer

I clearly see the element, although IE is horribly slow to inspect the element.

Is there a better way, for me to manage this. Since IE is the "officially" supported browser for our organization, I really should perform the automated testing with it.

    def locker_login(self, username=SERVER_TO_TEST["USER"],
                        password=SERVER_TO_TEST["PASSWORD"]):
        """
        Login to the web site, user the username and password provided.
        """
        self.go_to_server()
        self.type("input#UserName", username)
        self.type("input#Password", password)
        self.click(".btn")
        self.assert_element_present("span.username", timeout=5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid usageYou may need to change what you're doingquestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions