-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Admin] Country code immutability #4565
[Admin] Country code immutability #4565
Conversation
Arminek
commented
Mar 21, 2016
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | #4374 |
License | MIT |
d9390f3
to
08e0bc7
Compare
*/ | ||
private function getMessageElement() | ||
{ | ||
$messageElement = $this->createMessageElement(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just use $this->session->find('css', '.message')
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->session->getDriver()->find()
won't work with css it operates on xpath only but i think we can change this, cuz i can get selectorsHandler
from session.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, I meant $this->session->getPage()->find('css', '.message')
:) It works with the css selector.
08e0bc7
to
039c3bc
Compare
d5f30c6
to
ce648f4
Compare
ce648f4
to
77be94f
Compare
$codeField = $this->getElement('code'); | ||
return $codeField->getAttribute('disabled') === 'disabled'; | ||
} catch (ElementNotFoundException $exception) { | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not catch exception, it will indicate that something is wrong instead of incorrectly saying that code field is not disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you Arek! |