This file contains hidden or 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
| export class UIElementHelper { | |
| constructor(options = {}) { | |
| this.options = options; | |
| this.defaultTimeout = options.timeout || 5000; | |
| this.defaultDelay = options.delay || 0; | |
| this.defaultSelector = options.selector || '*'; | |
| this.enableHighlight = options.highlight || false; | |
| } | |
| async find({ |
This file contains hidden or 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 findAndHighlightText() { | |
| var doc = DocumentApp.getActiveDocument(); | |
| var body = doc.getBody(); | |
| var text = body.getText(); | |
| const matchedTexts = text.match(/(-+)?\d+\.\d{2}% \[(-+)?\d+\.\d{2}, (-+)?\d+\.\d{2}\] %/g) | |
| var positiveBgColor = "#ddffbb"; | |
| var positiveFontColor = "#008800"; | |
| var negativeBgColor = "#ffdbdb"; |
This file contains hidden or 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
| const Zillow = (function () { | |
| const dataMapping = { | |
| type: '', | |
| address: 'hdpData.homeInfo.address', | |
| zipcode: 'hdpData.homeInfo.zipcode', | |
| city: 'hdpData.homeInfo.city', | |
| state: 'hdpData.homeInfo.state', | |
| url: 'detailUrl', | |
| price: 'hdpData.homeInfo.price', | |
| priceChange: '', |