Skip to content
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

Trigger a 'change' Event after setting a value. #11

Merged
merged 1 commit into from
Dec 30, 2020

Conversation

andrewnicols
Copy link
Contributor

As discussed in #5.

andrewnicols added a commit to andrewnicols/moodle-behat-extension that referenced this pull request Dec 22, 2020
To facilitate this we use the oleg-andreyev/MinkPhpWebDriver Mink Driver
rather than any provided by the minkphp project, which have yet to add
support for php-webdrier.

The oleg-andreyev driver is largely complete, but there are a handful of
bugs waiting to be merged. As a result, this branch currently follows my
fork of the driver which is a branch with all of the pull requests
applied. These pull requests are:
- oleg-andreyev/MinkPhpWebDriver#8
  Opening, closing, and re-opening a window with the same name attempts
  to reopen the closed window.
- oleg-andreyev/MinkPhpWebDriver#10
  Work around a bug in geckodriver whereby the pointer location is not
  updated when calling click()
- oleg-andreyev/MinkPhpWebDriver#11
  Trigger a synthetic `change` event rather than pressing TAB after
  sendKeys.
- oleg-andreyev/MinkPhpWebDriver#12
  Work around a bug in geckodriver where an ElementNotInteractable error
  is thrown when attempting to click on a link whose first child is a
  block-level element.

This change moves away from the MoodleSeleium2 Driver and Factory in
favour of the more generic WebDriver and WebDriverFactory.

The changes here also remove the need for the modified syn.js library,
which is no longer used in favour of a true synthetic event.

The customistations in NodeElement are also no longer required as most
of them have been addressed in the php-webdriver/webdriver project, or
are worked around in the oleg-andreyev/MinkPhpWebDriver driver.
andrewnicols added a commit to andrewnicols/moodle-behat-extension that referenced this pull request Dec 22, 2020
To facilitate this we use the oleg-andreyev/MinkPhpWebDriver Mink Driver
rather than any provided by the minkphp project, which have yet to add
support for php-webdrier.

The oleg-andreyev driver is largely complete, but there are a handful of
bugs waiting to be merged. As a result, this branch currently follows my
fork of the driver which is a branch with all of the pull requests
applied. These pull requests are:
- oleg-andreyev/MinkPhpWebDriver#8
  Opening, closing, and re-opening a window with the same name attempts
  to reopen the closed window.
- oleg-andreyev/MinkPhpWebDriver#10
  Work around a bug in geckodriver whereby the pointer location is not
  updated when calling click()
- oleg-andreyev/MinkPhpWebDriver#11
  Trigger a synthetic `change` event rather than pressing TAB after
  sendKeys.
- oleg-andreyev/MinkPhpWebDriver#12
  Work around a bug in geckodriver where an ElementNotInteractable error
  is thrown when attempting to click on a link whose first child is a
  block-level element.

This change moves away from the MoodleSeleium2 Driver and Factory in
favour of the more generic WebDriver and WebDriverFactory.

The changes here also remove the need for the modified syn.js library,
which is no longer used in favour of a true synthetic event.

The customistations in NodeElement are also no longer required as most
of them have been addressed in the php-webdriver/webdriver project, or
are worked around in the oleg-andreyev/MinkPhpWebDriver driver.
andrewnicols added a commit to andrewnicols/moodle-behat-extension that referenced this pull request Dec 22, 2020
To facilitate this we use the oleg-andreyev/MinkPhpWebDriver Mink Driver
rather than any provided by the minkphp project, which have yet to add
support for php-webdrier.

The oleg-andreyev driver is largely complete, but there are a handful of
bugs waiting to be merged. As a result, this branch currently follows my
fork of the driver which is a branch with all of the pull requests
applied. These pull requests are:
- oleg-andreyev/MinkPhpWebDriver#8
  Opening, closing, and re-opening a window with the same name attempts
  to reopen the closed window.
- oleg-andreyev/MinkPhpWebDriver#10
  Work around a bug in geckodriver whereby the pointer location is not
  updated when calling click()
- oleg-andreyev/MinkPhpWebDriver#11
  Trigger a synthetic `change` event rather than pressing TAB after
  sendKeys.
- oleg-andreyev/MinkPhpWebDriver#12
  Work around a bug in geckodriver where an ElementNotInteractable error
  is thrown when attempting to click on a link whose first child is a
  block-level element.

This change moves away from the MoodleSeleium2 Driver and Factory in
favour of the more generic WebDriver and WebDriverFactory.

The changes here also remove the need for the modified syn.js library,
which is no longer used in favour of a true synthetic event.

The customistations in NodeElement are also no longer required as most
of them have been addressed in the php-webdriver/webdriver project, or
are worked around in the oleg-andreyev/MinkPhpWebDriver driver.
@oleg-andreyev oleg-andreyev reopened this Dec 24, 2020
@oleg-andreyev
Copy link
Owner

@andrewnicols please rebase on the master, I've switched to GitHub Actions.

@oleg-andreyev
Copy link
Owner

@andrewnicols I've rebased your branch once again on master.

@oleg-andreyev oleg-andreyev merged commit 7aed58e into oleg-andreyev:master Dec 30, 2020
@oleg-andreyev
Copy link
Owner

@andrewnicols thanks!

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