/usr/lib/ruby/vendor_ruby/capybara/spec/views/frame_child.erb is in ruby-capybara 2.10.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <%# frozen_string_literal: true %>
<html>
<head>
<title>This is the child frame title</title>
<script>
function closeWin() {
var iframe = window.parent.document.getElementById('childFrame')
iframe.parentNode.removeChild(iframe)
}
</script>
</head>
<body id="childBody">
<a href="javascript:void(0)" onClick="closeWin()">Close Window</a>
<iframe src="/frame_one" id="grandchildFrame1"></iframe>
<iframe src="/frame_two" id="grandchildFrame2"></iframe>
</body>
</html>
|