Skip to content

1548: Selenium: open browser code does not account for default values of arguments and 1591: Selenium fix for togther as these tickets are interdependent#317

Closed
brettleehari wants to merge 5 commits into
developfrom
WAR-1548_1591
Closed

1548: Selenium: open browser code does not account for default values of arguments and 1591: Selenium fix for togther as these tickets are interdependent#317
brettleehari wants to merge 5 commits into
developfrom
WAR-1548_1591

Conversation

@brettleehari

Copy link
Copy Markdown
Contributor

Addressed, 1548 and 1591 together as they are interdependent.

@brettleehari brettleehari self-assigned this Dec 5, 2017
@sanikakulkarni
sanikakulkarni requested a review from bjrr December 5, 2017 23:33
UPdated proxy_port instead of gecko_path
UPdated proxy_port instead of gecko_path
@navvrnd
navvrnd self-requested a review December 6, 2017 09:39

@navvrnd navvrnd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add negative cases with binary, gecko_path with null, False or None values and attach the logs in the ticket.

ff_profile = self.browser_object.\
set_firefoxprofile(proxy_ip, proxy_port)
if binary != "" and gecko_path != "":
if browser_details["gecko_path"] not in [None, False] and \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if gecko_path is there in browser_details before checking its value

firefox_profile=profile_dir,
executable_path=gecko_path)
else:
except:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this nested try catch? why can't this be handled in the outer try/except? Please handle the specific exceptions expected.

@kaheichan kaheichan assigned kaheichan and unassigned brettleehari Dec 19, 2017
@kaheichan
kaheichan requested review from kaheichan and removed request for kaheichan December 19, 2017 21:42
@kaheichan
kaheichan requested review from navvrnd and removed request for bjrr, navvrnd, sanikakulkarni and sugan19 December 19, 2017 22:13
@kaheichan

Copy link
Copy Markdown
Contributor

Code not in ready-to-review state, will add assignee once it is ready

@kaheichan

Copy link
Copy Markdown
Contributor

A New PR #333 has been created to fit the scope of all related ticket

@kaheichan kaheichan closed this Dec 19, 2017
firefox_profile=profile_dir,
executable_path=gecko_path)
else:
except:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The try except block ignore the error and force a Firefox browser to spawn
without logging the potential error

"name",
remote = data_Utils.getSystemData(self.datafile, system_name, "remote")
if binary is None:
binary = data_Utils.getSystemData(self.datafile, system_name, "binary")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

binary, gecko_path. proxy_ip and proxy_port aren't in system
It's inside browser level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants