| Code-Review | +1 |
!element.IsNull() && element.GetUnavailableReason()) {Consider using `.has_value()` here to make it explicitly clear to readers that `GetUnavailableReason()` returns an optional rather than a boolean.
```suggestion
!element.IsNull() && element.GetUnavailableReason().has_value()) {
```
if (element.GetUnavailableReason()) {Consider using `.has_value()` for clarity.
```suggestion
if (element.GetUnavailableReason().has_value()) {
```
return EqualIgnoringAsciiCase(role, keywords::kPresentation) ||
EqualIgnoringAsciiCase(role, keywords::kNone);Can we revert this change?
if (GetUnavailableReason()) {Consider using `.has_value()` for clarity.
```suggestion
if (GetUnavailableReason().has_value()) {
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
!element.IsNull() && element.GetUnavailableReason().has_value()) {Done.
if (element.GetUnavailableReason().has_value()) {Done.
return EqualIgnoringAsciiCase(role, keywords::kPresentation) ||
EqualIgnoringAsciiCase(role, keywords::kNone);Can we revert this change?
Done
Consider using `.has_value()` for clarity.
```suggestion
if (GetUnavailableReason().has_value()) {
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (element.GetUnavailableReason().has_value()) {Aaron LeventhalDone.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
std::optional<WebElementUnavailableReason> GetUnavailableReason();Maybe just InteractionDisallowedReason?
enum class WebElementUnavailableReason {Can we make this more specific like WebElementInteractionDisallowedReason?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
std::optional<WebElementUnavailableReason> GetUnavailableReason();Aaron LeventhalMaybe just InteractionDisallowedReason?
Done
Can we make this more specific like WebElementInteractionDisallowedReason?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
[APC] Return WebElement unavailable reasonsPlease update the cl description to use interaction disallowed reason.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |