You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will be implementing some more exceptions in the code.
The current find_element() method checks for specific strategies like 'class_name', 'css_selector', and 'xpath' using multiple if-elif statements
This is not scalable if more strategies are needed (like ID, TAG_NAME). If an invalid strategy is passed, the program raises a ValueError manually instead of validating against Selenium's By class.
so i will be implementing getattr() to map the strategy dynamically from the By class, and handle invalid strategies properly.
So, can you please assign this issue to me.
The text was updated successfully, but these errors were encountered:
I will be implementing some more exceptions in the code.
The current find_element() method checks for specific strategies like 'class_name', 'css_selector', and 'xpath' using multiple if-elif statements
This is not scalable if more strategies are needed (like ID, TAG_NAME). If an invalid strategy is passed, the program raises a ValueError manually instead of validating against Selenium's By class.
so i will be implementing getattr() to map the strategy dynamically from the By class, and handle invalid strategies properly.
So, can you please assign this issue to me.
The text was updated successfully, but these errors were encountered: