extend auto completion coverage (#1165)
This commit is contained in:
@@ -216,6 +216,10 @@ function isElementStyleVisibilityVisible(element, style) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function hasASPClientControl() {
|
||||
return typeof ASPxClientControl !== "undefined";
|
||||
}
|
||||
|
||||
// from playwright
|
||||
function isElementVisible(element) {
|
||||
// TODO: This is a hack to not check visibility for option elements
|
||||
@@ -496,8 +500,16 @@ function isInteractable(element) {
|
||||
if (element.className.toString().includes("hover:cursor-pointer")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// auto for <a> is equal to pointer for <a>
|
||||
if (tagName == "a" && computedStyle.cursor === "auto") {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasASPClientControl() && tagName === "tr") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -600,6 +600,7 @@ class IncrementalScrapePage:
|
||||
return None, False
|
||||
|
||||
if not interactable:
|
||||
LOG.debug("Find the target element by text, but the element is not interactable", text=text)
|
||||
return None, True
|
||||
|
||||
return parent_locator, True
|
||||
|
||||
Reference in New Issue
Block a user