- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.6k
          [py] support for custom error messages through functions for WebDriverWait.until/until_not
          #15723
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…erWait.until/until_not`
| PR Reviewer Guide 🔍(Review updated until commit 147913a)Here are some key observations to aid the review process: 
 | 
| Thank you, @Delta456 for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. | 
| PR Code Suggestions ✨Latest suggestions up to 147913a 
 Previous suggestions✅ Suggestions up to commit 147913a
 | |||||||||||||||||||||
| I was watching it again just now and I was wondering... | 
c37c7c8    to
    c320e83      
    Compare
  
    | 
 I believe it should be acceptable as long you know that you are providing a custom error message. IF you don't want the new error message, you can always leave that parameter. | 
| I thought we were no longer maintaining these support packages? | 
| That's true. We want to avoid making changes here and empower users to do their own. | 
User description
🔗 Related Issues
Implements #14552
💥 What does this PR do?
Allow specifying a callable for the message argument in
WebDriverWait.until / until_not🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement, Tests
Description
Allow callable as
messageinWebDriverWait.until/until_notUpdate method signatures and error handling for callables
Add tests for callable and string timeout messages
Changes walkthrough 📝
wait.py
Add callable support for timeout messages in WebDriverWaitpy/selenium/webdriver/support/wait.py
messageinuntilanduntil_notwebdriverwait_tests.py
Add tests for callable and string timeout messagespy/test/selenium/webdriver/common/webdriverwait_tests.py