-
Notifications
You must be signed in to change notification settings - Fork 35
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
Select From Search Field #419
Conversation
Hey @Minasyan1, A few items that I would start with before we can do a full review:
|
src/Zoomba/GUILibrary.py
Outdated
def select_from_search_field(self, locator, text, timeout=None): | ||
"""This is a Selenium keyword that first attempts to find a web element, clears it, and then inputs text. | ||
Subsequently, it selects the first item in the search dropdown. | ||
If typing into the element fails, the keyword will scroll to the bottom of the page and try again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really do this? I don't get any indication from the code that this is the case.
src/Zoomba/GUILibrary.py
Outdated
from selenium.webdriver.common.keys import Keys | ||
from selenium.webdriver.support.ui import WebDriverWait | ||
from selenium.webdriver.support import expected_conditions as EC | ||
from selenium.webdriver.common.by import By |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need any of these anymore
test/GUI/test_gui.py
Outdated
@@ -6,6 +6,7 @@ | |||
from Zoomba.GUILibrary import GUILibrary | |||
from Zoomba.Helpers import ReactSelect | |||
from selenium.common.exceptions import UnexpectedTagNameException | |||
from selenium.webdriver.common.keys import Keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, i don't think we need this anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused imports
This is a Selenium keyword that that first waits for an element to be on the DOM, executes
Focus on it, then it waits for it to be visible, clears it, and then inputs text.
Subsequently, it selects the first item in the search dropdown.