Main public logs
Jump to navigation
Jump to search
Combined display of all available logs of Craft of Testing - Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 21:47, 4 April 2025 Gregpaskal talk contribs created page Ruby - Cheatsheet (Created page with "{{: Header_Nav}} # This ruby script uses JavaScript to grab the URL from the browser and return it to Ruby lo_js_universal = 'return window.location.pathname' myurl = @driver.execute_script(lo_js_universal) puts "===== Here is the window.location.pathname: #{myurl} =====" # Ruby - JavaScript - XPath - Capture value lo_js_universal = '//input[@name=\"campaign_id\"]' js_universal = "return document.evaluate(`#{lo_js_universal}`, document, null, XPathResult.FIRST_OR...")