Rayrun
← Back to Discord Forum

timeout exceeded

kombucha199posted in #help-playwright
Open in Discord
kombucha199

So my variable is set to find something on the page (page.locator). But can I set the variable to some other string if timeout is exceeded on the crawler code? I don't want the program to crash if it doesn't find the value.

This thread is trying to answer question "Can I set the variable to some other string if timeout is exceeded on the crawler code?"

2 replies
kombucha199

timeout exceeded

try-catch or regex with multiple patterns to find the element

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].