Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Read and used in page objects #75

Merged
merged 5 commits into from
Jan 16, 2017

Conversation

nicopaul
Copy link
Contributor

@nicopaul nicopaul commented Jan 11, 2017

Branch where I added markAsRead() to relevant methods of multiple page objects

#74 is required for this pull request


This change is Reviewable

@slu-it
Copy link
Member

slu-it commented Jan 12, 2017

needs to be rebased because of conflict after merging #74

@@ -190,6 +192,7 @@ public void deselectByIndices(final Integer... indices) {
String index = option.getAttribute("index");
allSelectedIndices.add(Integer.valueOf(index));
}
this.markAsRead();
Copy link
Member

Choose a reason for hiding this comment

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

all of these this.markAsRead() could be replaced by adding the marking to the public List<WebElement> getAllSelectedOptions() method

@@ -300,6 +307,7 @@ public Integer execute(PageObject pageObject) {

@Override
public List<String> execute(PageObject pageObject) {
pageObject.markAsRead();
Copy link
Member

Choose a reason for hiding this comment

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

Most of the pageObject.markAsRead(); could be replaced by putting them into getAllSelectedOptions(), getFirstSelectedOption() and getAllOptions()

try {
pageObject.markAsRead();
Copy link
Member

Choose a reason for hiding this comment

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

can be moved to getSelectedOption()

…electedOption()`, `getAllOptions()` and `getSelectedOption()` for better understanding
@slu-it
Copy link
Member

slu-it commented Jan 16, 2017

:lgtm:


Review status: 0 of 6 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@slu-it
Copy link
Member

slu-it commented Jan 16, 2017

Reviewed 3 of 6 files at r1, 3 of 3 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@slu-it slu-it merged commit 7fa51f1 into testIT-WebTester:master Jan 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants