-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add easy support for drag and drop e.g. sliders #76
Labels
codeDone
The issue is rechecked for development branch
codeReadyForRecheck
The issue is fixed/implemented AND merged into development, but needs to be rechecked there
feature
Low Priority
Milestone
Comments
PoC and implementation idea: import org.openqa.selenium.interactions.Action;
import org.openqa.selenium.interactions.Actions;
...
private void slideHorizontalUntilText(SelenideElement leftSlider, int movement, SelenideElement textContainer, String textToFind)
{
Actions moveSlider = new Actions(Neodymium.getDriver());
int counter = 0;
while (!textContainer.has(text(textToFind)))
{
if (counter > 23)
{
SelenideAddons.wrapAssertionError(() -> {
Assert.assertTrue("CircutBreaker: Was not able to interact with the slider", false);
});
}
Action action = moveSlider.dragAndDropBy(leftSlider.getWrappedElement(), movement, 0).build();
action.perform();
Selenide.sleep(3000);
counter++;
}
} |
Next steps:
|
jseng92
pushed a commit
that referenced
this issue
Mar 23, 2020
jseng92
pushed a commit
that referenced
this issue
Mar 25, 2020
jseng92
pushed a commit
that referenced
this issue
Mar 31, 2020
jseng92
pushed a commit
that referenced
this issue
Mar 31, 2020
jseng92
pushed a commit
that referenced
this issue
Apr 1, 2020
jseng92
pushed a commit
that referenced
this issue
Apr 2, 2020
added requested changes |
we skip the "Add short had functions for horizontal and vertical movements" step because these functions are to special, so if needed the user can implement them by himself and use the generell function for it |
occupant23
pushed a commit
that referenced
this issue
Apr 3, 2020
occupant23
added
codeReadyForRecheck
The issue is fixed/implemented AND merged into development, but needs to be rechecked there
codeDone
The issue is rechecked for development branch
labels
Apr 3, 2020
occupant23
changed the title
Add easy support for drag and dropping sliders
Add easy support for drag and drop e.g. sliders
Apr 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
codeDone
The issue is rechecked for development branch
codeReadyForRecheck
The issue is fixed/implemented AND merged into development, but needs to be rechecked there
feature
Low Priority
Selenide seems not to have such a feature. Implement it for Neo and try to port it back to Selenide.
The text was updated successfully, but these errors were encountered: