Skip to content

Instantly share code, notes, and snippets.

@Hexer10
Created January 8, 2020 21:04
Show Gist options
  • Save Hexer10/b07cf918215b42d5f17904f907d8e29b to your computer and use it in GitHub Desktop.
Save Hexer10/b07cf918215b42d5f17904f907d8e29b to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="scaffolded-by" content="https://github.com/google/stagehand">
<title>web_test</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="favicon.ico">
<script defer src="main.dart.js"></script>
</head>
<body>
<div class="card-image">
<a href="/">
Hellos
</a>
<a href="/">
<img src="https://icatcare.org/app/uploads/2018/07/Thinking-of-getting-a-cat.png" alt="Cat">
</a>
</div>
</body>
</html>
import 'dart:html';
void main() {
var div = querySelector('.card-image');
var img = div.children[1].children[0] as ImageElement;
print(img.src);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment