Skip to content

Phalanxguard patch 1#6

Merged
HellAmbro merged 2 commits intoHellAmbro:masterfrom
Phalanxguard:Phalanxguard-patch-1
Feb 9, 2022
Merged

Phalanxguard patch 1#6
HellAmbro merged 2 commits intoHellAmbro:masterfrom
Phalanxguard:Phalanxguard-patch-1

Conversation

@Phalanxguard
Copy link
Copy Markdown
Contributor

No description provided.

Added click function to click accept all cookies using css selector
Added sleep to wait for accept all cookie popup
Updated click for login button css selector
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

self.driver.find_element_by_name("email").send_keys(username)
self.driver.find_element_by_name("password").send_keys(password)
self.driver.find_element_by_class_name("submit-button").click()
time.sleep(1) #Let the Accept all cookies popup arrive
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think this sleep can be safely deleted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm OK with this. If any issues arise I can report again.

class Mode(Enum):
DEMO = "demo"
LIVE = "live"
DEMO = ("demo",)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why are you using round brackets?

Copy link
Copy Markdown
Contributor Author

@Phalanxguard Phalanxguard Feb 9, 2022

Choose a reason for hiding this comment

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

No idea, I think those must have been in the original code, I didn't intentionally add it! They can be removed.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Yes, maybe you're using an older version.

Copy link
Copy Markdown
Owner

@HellAmbro HellAmbro left a comment

Choose a reason for hiding this comment

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

Thanks for fixing cookie popup.

@HellAmbro HellAmbro merged commit 8c5bc4f into HellAmbro:master Feb 9, 2022
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.

2 participants