What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-07 23:56:04
download audio file javascript
var filename = url.substring(url.lastIndexOf("/") + 1).split("?")[0]; var xhr = new XMLHttpRequest(); xhr.responseType = 'blob'; xhr.onload = function() { var a = document.createElement('a'); a.href = window.URL.createObj... Add solution -
Python 2021-10-05 11:06:02
selenium if statement python
try: elem = driver.find_element_by_partial_link_text('Create Activity') if elem.is_displayed(): elem.click() # this will click the element if it is there print("FOUND THE LINK CREATE ACTIVITY! and Clicked it!") except NoS... Add solution -
Go 2021-10-05 06:01:03
how-to-prevent-google-colab-from-disconnecting
#Set a javascript interval to click on the connect button every 60 seconds. #Open developer-settings (in your web-browser) with Ctrl+Shift+I then click #on console tab and type this on the console prompt. #(for mac press Option+Command+I) function Con... Add solution -
CSS 2021-10-04 12:08:03
how to remove text style on td in angularjs
var colorSpan = element(by.css('span')); it('should check ng-style', function() { expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/); element(by.css('input[value=\'set color\']')).click(); expect(colorSpan.getCssVal... Add solution -
Python 2021-10-03 11:17:02
read excel selenium
# How to read & write to Excel file import XL_utility # Importing from the second file from selenium import webdriver import unittest import time class Test_Excel(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(&qu... Add solution -
Javascript 2021-10-02 22:05:04
js code for webpage download progress bar
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="a1" data-filename="filename.xml">Click to download</div> <script> $('#a1').click(function() { ... Add solution -
Other 2021-10-02 19:10:04
checkbox selenium
- We locate, and we click on them. isSelected() isSelected()--> true, else --> false This method checks if the checkbox/radiobutton is selected or not selected. isEnabled() isEnabled -> true, else --> false This method checks if the check... Add solution
Best helpers
Ranking is empty