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
| def drag_by(ele, right_by, down_by) | |
| selenium_instance.drag_and_drop_by(ele.native, right_by, down_by).perform | |
| end |
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
| "geckodriver": "^1.19.1" | |
| "selenium-webdriver": "^4.0.0-alpha.7",``` | |
| And firefox version on the grid is: | |
| ```v:76.0.1 |
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
| options.addArguments("--headless"); | |
| driver = await new Builder().forBrowser(BROWSER).setFirefoxOptions(options).usingServer('<http://seleniumgrid/wd/hub').build()>; |
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
| driver.find_element(id: 'element1').div(id: 'element2').click |
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
| Emitted | step.passed (I click {"xpath":"//div[contains(text(), 'Logout')]"}) | |
| Emitted | step.finish (I click {"xpath":"//div[contains(text(), 'Logout')]"}) | |
| Emitted | step.start (I wait 5) | |
| Object: isLoggedOut | |
| I wait 5 | |
| Emitted | step.passed (I wait 5) | |
| Emitted | step.finish (I wait 5) | |
| Emitted | step.start (I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>") | |
| I dont see "<mailto:testuser123@gmail.com|testuser123@gmail.com>" | |
| [1] Error | invalid session id: invalid session id |
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
| mypage | |
| .switchtoFrame("<frameID>") | |
| .dosomething(); |
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
| mypage | |
| .switchtoFrame("<frameID>") | |
| .dosomething(); |
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
| info_text = self.driver.find_element_by_xpath("/html/body/div[4]/main/div/div/div[2]/div[1]/div/ul/li[1]/div[2]/span[4]").get_attribute("title") | |
| print(info_text) |
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
| print(element).text |
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
| <span class="no-wrap " xpath="1"> | |
| Updated <relative-time datetime="2020-06-16T21:58:23Z" class="no-wrap" title="Jun 16, 2020, 2:58 PM PDT">yesterday</relative-time> | |
| </span> |