Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add validation to check if the temp dir path exists in the browser options #116

Copy link
Copy link
Open
@joao-voltarelli

Description

@joao-voltarelli
Issue body actions

Some improvements have been made in the latest framework versions regarding excluding the bot's temporary folder. Since the folder configuration in IE is different from other browsers, an error is thrown when trying to register atexit in start_browser().

I think a possible solution could be adding the _botcity_temp_dir property in the IE options, even if it is None, just to avoid this error of the property not existing. Something like:

def default_options(headless=False, download_folder_path=None, user_data_dir=None,
                    page_load_strategy="normal") -> Options:
    """Retrieve the default options for this browser curated by BotCity.

    Returns:
        Options: The Internet Explorer options.
    """
    ie_options = Options()
    ie_options.add_argument("-embedding")
    ie_options.add_argument("-extoff")
    ie_options.add_argument("-k")
    ie_options._botcity_temp_dir = None //
    return ie_options

Reference: https://community.botcity.dev/t/modo-internet-explorer-issue/729

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.