-
Notifications
You must be signed in to change notification settings - Fork 8
Seleniumworkspace #43
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
base: master
Are you sure you want to change the base?
Conversation
| WebElement txt= driver.findElement(By.xpath("/html//body[@id='tinymce']")); | ||
| txt.clear(); | ||
| sleepTime(3000); | ||
| txt.sendKeys(Data.INPUTS_TEXT); |
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.
validate input text attributes
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.
Make add remove element dynamic with value input for add elements, remove element should correspond with add element.
| sleepTime(1000); | ||
|
|
||
| //Value Pass On input Field login popup | ||
| driver.get("https://admin:admin@the-internet.herokuapp.com/basic_auth"); |
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.
Make the link dynamic with concatenation for username and password. Manage username and password in the test data.
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.
Can't see where it validates the broken images of a page.
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.
Contains too many unnecessary validations!
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.
Can't see where it validates the disappearing elements. Make it dynamic!
| File filePath = new File(Data.DOWNLOAD_FILE_PATH); | ||
| File[] totalFiles = filePath.listFiles(); | ||
| for (File file:totalFiles) { | ||
| if (file.getName().equals("logo.png")) { |
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.
Hard coded data
| //Now Release CTRL | ||
| robot.keyRelease(KeyEvent.VK_CONTROL); | ||
| sleepTime(2000); | ||
|
|
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.
What if you download multiple files, how would you validate those?
|
|
||
| //File Download Validation | ||
| //Using String Selection Class to store the path of the file | ||
| Robot robot=new Robot(); |
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.
Robot class is unnecessary
abzaman7
left a comment
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.
Check the in-code comments.
Herokuapp validation TestCases :
-RedirectLink
-MouseHover
-HorizontalSlider
-FileDownloadValidation
-NotificationMessage
-AddRemoveElementsValidation
-MultipleWindows
-FileUploadValidation
-DigestAuthentication
-DisappearingElementsValidation
-ForgotPassword
-JavaScriptAlert
-BasicAuth
-DragAndDropValidation
-ContextMenuValidation
-BrokenImage
-Input
-CheckboxesValidation
-InfiniteScroll
-DropDownValidation
-ABTestingValidation
-NestedFrames
-Iframe
-ValidUserNamePassword
-InvalidUserNamePassword
-InvalidUserName
-InvalidPassword
-DynamicContentValidation
-DynamicControlsValidation