This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sleep(ms = 5000) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
function stripHTML(html) { | |
return html.replace(/(<([^>]+)>)/gi, ""); | |
} | |
function clickOnAction(actionSelector) { | |
var buttons = document.querySelectorAll(actionSelector); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RetryWhen.swift | |
// CombineSandbox | |
// | |
// Created by Daniel Tartaglia on 9/27/19. | |
// Copyright © 2019 Daniel Tartaglia. MIT License. | |
// | |
import Foundation | |
import Combine |