Comments (6)
Note: If the decision is for d, can I suggest that the blur be moved to a new function, i.e.
public function setValue($xpath, $value)
{
// ...
$element->sendKeys($value);
$this->blurElement($element);
}
protected function blurElement(RemoteWebElement $element)
{
$element->sendKeys(WebDriverKeys::TAB);
}
This will at least allow me extend the driver, and then to override the blurElement
function to match the documented behaviour.
from minkphpwebdriver.
Hi @oleg-andreyev,
Anything I can do to progress this? Iām really keen to get moved over to php-webdriver/webdriver.
from minkphpwebdriver.
@andrewnicols haven't looked into this issue yet, I'm in the progress of stabilizing build for the main branch.
from minkphpwebdriver.
@andrewnicols I agree that sending TAB wasn't a great idea! I think it's better to go with B.
I've tried to play with "input" event instead of "change" event and few tests are failing, so let's go just with "change" event.
Would you mind creating a PR? and please create appropriate test-case to https://github.com/oleg-andreyev/driver-testsuite/tree/integration-branch
from minkphpwebdriver.
I've created a branch for this, but I'm not sure what additional tests I should write.
The tests in tests/Js/ChangeEventTest.php should already cover this. I can add a test which ensures that the focus is still on that element, but that seems inappropriate. What do you think?
from minkphpwebdriver.
I can add a test which ensures that the focus is still on that element, but that seems inappropriate. What do you think?
yes, it's the exact scenarios I was thinking
from minkphpwebdriver.
Related Issues (14)
- Replace Selenium2 driver this Facebook on proprietary test suite HOT 3
- Make all methods protected instead of private HOT 1
- Add a Changelog.md HOT 1
- Move to GitHub Actions.
- Add --no-gpu option for Chrome
- Handle prompt
- License file
- Time to release..? HOT 2
- switchToIframe uses 'name' as reference instead of 'id' HOT 1
- Invalid characters include
- Move project to php-webdriver/MinkPhpWebDriver HOT 7
- Exception thrown when outputting junit from Behat HOT 1
- firefox clickOnElement moveToElement breaks if element is outside viewport
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minkphpwebdriver.