Skip to content

EventFiringWebDriver: added an event on "submit()" #1179

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

Closed
wants to merge 2 commits into from

Conversation

s2oBCN
Copy link

@s2oBCN s2oBCN commented Oct 21, 2015

When "recording" the interaction with a page,
there's the need to record the "submit" action.
For us, this is similar to a "click()",
so then we decided to dispatch the "click" event,
but maybe a new "submit" event could be dispatched...


This change is Reviewable

When "recording" the interaction with a page,
there's the need to record the "submit" action.
For us, this is similar to a "click()",
so then we decided to dispatch the "click" event,
but maybe a new "submit" event could be dispatched...
@@ -349,7 +349,9 @@ public void click() {
}

public void submit() {
dispatcher.beforeClickOn(element, driver);
Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't be beforeClickOn, but rather beforeSubmit? and added to WebDriverEventListener.

Since submit does not synthesize the 'click' events, this isn't accurate.

@TikhomirovSergey
Copy link
Contributor

Guys
There is one more similar PR #1034
Maybe does it make sense to combine these changes somehow?

@barancev barancev added the C-java Java Bindings label Sep 6, 2017
@beatngu13
Copy link

Anyone still interested in this? I would like to use this feature and I can also take care of necessary changes to this PR (new rebase, interface changes, more tests, etc.).

@CLAassistant
Copy link

CLAassistant commented Nov 23, 2019

CLA assistant check
All committers have signed the CLA.

@diemol diemol closed this Jul 12, 2020
@diemol diemol reopened this Jul 12, 2020
@diemol diemol changed the base branch from master to trunk July 12, 2020 20:01
@barancev
Copy link
Member

Sorry for keeping this PR on hold for long time. We have implemented a new EventFiringDecorator that makes the proposed changes obsolete. See commits afdb348 and 47ee733

@barancev barancev closed this Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-java Java Bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants