WAR-724 - To test if all the available selenium functionality in Warrior is compatible with Selenium 3.0#62
Conversation
8e74d11 to
2d27769
Compare
| def _make_chrome(self, webdriver_remote_url, desired_capabilities, profile_dir): | ||
| try: | ||
| if webdriver_remote_url: | ||
| browser = \ |
There was a problem hiding this comment.
no need of backslash as the next line can also be put here without affecting readability or pylint scores.
|
Tested the functionality from user perspective. In Windows its working fine, in Linux URL error has been noted. |
|
@bjrr |
brettleehari
left a comment
There was a problem hiding this comment.
Dependent on WAR-1141
3ea0908
|
resolving merge conflicts undid the approvals given by priya and arvind. merging now using admin rights |
| if type == "firefox": | ||
| ff_profile = self.browser_object.\ | ||
| set_firefoxprofile(proxy_ip, proxy_port) | ||
| if binary != "" and gecko_path != "": |
There was a problem hiding this comment.
gecko_path and binary value may be None
There was a problem hiding this comment.
These issues were found and addressed in the PR : #317
There was a problem hiding this comment.
The PR mentioned is looking for gecko_path and binary in system, but gecko_path and binary should be in browser, which is a child of system
so it isn't addressed correctly
| print_error("Please provide path for geckodriver executable") | ||
| elif "Expected browser binary location" in str(e): | ||
| print_error("Please provide path of firefox executable") | ||
|
|
There was a problem hiding this comment.
No Else block here to log other possible error
There was a problem hiding this comment.
This issue of general exception is found and addressed in the PR : #317
The else part is a good find.
There was a problem hiding this comment.
The issue here is about when WebDriverException occurs, the error message may not get printed because of the lack of else statement in this block
The PR mentioned wrapped everything in one general except block and shouldn't count as addressed since it simply discard the error specific messages here
Also it force spawn a firefox browser without printing out any error message...
| print_error("Please provide path of firefox executable") | ||
|
|
||
| def _make_chrome(self, webdriver_remote_url, desired_capabilities, | ||
| profile_dir, binary, gecko_path): |
There was a problem hiding this comment.
No explanation about gecko_path appearance in here
chrome doesn't need gecko_path and this is passed with no use
|
This PR is being reverted and rework in #334 |
Results files are attached in JIRA ticket.
How-to-test:
Steps are added in user doc and attached in JIRA ticket