Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Discord or channel in non-English languages #10

Open
@tttollerer

Description

@tttollerer

There are various problems with the DOM addressing, e.g. if the Discord client is not set to English or the channel was not created by an English client.

This affects the following lines, for example:

145 messages = await page.query_selector_all(".messageListItem-ZZ7v6g")
154 image_elements = await page.query_selector_all('.originalLink-Azwuo9')
185 pill_value_locator = 'span.optionPillValue-2uxsMp'
258 messages = await page.query_selector_all(".messageListItem-ZZ7v6g")
395 chat_bar = page.get_by_role('textbox', name='Message #general')
404 prompt_option_selector = "#autocomplete-0 > .base-2v-uc0"

Unfortunately, there also seems to be no solution to provide the classes with whitespaces like
404 prompt_option_selector = "#autocomplete-0 > .base-2v-uc0"
->
prompt_option_selector = "#autocomplete-0 > [class^='base']"

I think you have to go through the position in the DOM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions