-
-
Save noidi/23130a526bc8bdd400c7 to your computer and use it in GitHub Desktop.
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
;; Original: | |
;; driver.switchTo().frame("foo"); | |
;; WebElement editable = driver.switchTo().activeElement(); | |
;; editable.sendKeys("Your text here"); | |
;; Direct translation: | |
(let [driver (:webdriver *driver*)] | |
(-> driver .switchTo (.frame "foo")) | |
(let [editable (-> driver .switchTo .activeElement)] | |
(.sendKeys editable "Your text here"))) | |
;; Using the Taxi API the could should look something like this: | |
(switch-to-frame "#foo") | |
(switch-to-active) | |
(send-keys "Your text here") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment