MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / IsLocationVisibleInFrames

Method IsLocationVisibleInFrames

cpp/iedriver/Element.cpp:883–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 return false;
882}
883bool Element::IsLocationVisibleInFrames(const LocationInfo location,
884 const std::vector<LocationInfo> frame_locations) {
885 std::vector<LocationInfo>::const_iterator iterator = frame_locations.begin();
886 for (; iterator != frame_locations.end(); ++iterator) {
887 if (location.x < iterator->x ||
888 location.y < iterator->y ||
889 location.x > iterator->x + iterator->width ||
890 location.y > iterator->y + iterator->height) {
891 return false;
892 }
893 }
894 return true;
895}
896
897bool Element::IsSelected() {
898 LOG(TRACE) << "Entering Element::IsSelected";

Callers 1

Calls 1

endMethod · 0.80

Tested by

no test coverage detected