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
| import unittest | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| class Browser(unittest.TestCase): | |
| def setUp(self): | |
| PATH = "/Users/macbookair/Desktop/how_download_files_selenium_python/download" | |
| #Google Chrome | |
| options = Options() | |
| prefs = {"download.default_directory" : PATH} |
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
| class TestAPIDownloadFile(): | |
| username = "username" | |
| access_Key = "access key" | |
| #POST_REQUEST | |
| url = "https://api.lambdatest.com/automation/api/v1/user-files" | |
| payload={} | |
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
| import unittest | |
| from selenium import webdriver | |
| class Browser(unittest.TestCase): | |
| def setUp(self): | |
| PATH = "/Users/macbookair/Desktop/how_download_files_selenium_python/download" | |
| #Mozilla Firefox | |
| profile = webdriver.FirefoxProfile() | |
| profile.set_preference("browser.download.folderList", 2) | |
| profile.set_preference("browser.download.manager.showWhenStarting", False) | |
| profile.set_preference("browser.download.dir", PATH) |
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
| { | |
| "name": "my-project", //name of the project | |
| "version": "0.1.0", // version of the project | |
| "private": true, //Public when you upload your project to npm | |
| "dependencies": { //dependencies used in your project | |
| "@typeform/embed": "^1.36.0", | |
| "@typeform/embed-react": "^1.17.0", | |
| "bootstrap": "^5.1.3", | |
| "cra-template": "1.2.0", | |
| "framer-motion": "^6.5.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
| import React from 'react'; | |
| function App() { | |
| return ( | |
| <main style={{padding:"5px"}}> | |
| <p style={{ fontWeight: "bold",fontFamily:"sans-serif" }}> | |
| Elon Musk </p> | |
| <p>18.6k Tweets</p> | |
| <img alt="" | |
| style={{ width: "100%" }} | |
| src='https://pbs.twimg.com/profile_banners/44196397/1576183471/600x200' |
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 Styles = { | |
| divStyles: { | |
| color: "red", | |
| backgroundColor: "black", | |
| fontSize: "20px", | |
| fontWeight: "bold", | |
| textAlign: "center", | |
| padding: "1px", | |
| margin: "10px", | |
| }, |
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
| import Styles from "./App.module.css"; | |
| export default function App() { | |
| return ( | |
| <div className={Styles.block}> | |
| <h2> | |
| React is a free and open-source front-end JavaScript library for | |
| building user interfaces based on UI components. It is maintained by | |
| Meta and a community of individual developers and companies | |
| </h2> |
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
| block { | |
| display: "block"; | |
| width: 70vw; | |
| font-family: sans-serif; | |
| max-width: fit-content; | |
| background-color: black; | |
| border-radius: 5px; | |
| color: white; | |
| font-size: 24px; | |
| text-align: center; |
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
| import "./styles.css"; | |
| export default function App() { | |
| return ( | |
| <div className='App'> | |
| <h1> | |
| Hello World | |
| <style jsx> | |
| {` | |
| h1 { |
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
| import "./styles.css"; | |
| import styled from "styled-components"; | |
| const Button = styled.a` | |
| /* This renders the buttons above... Edit me! */ | |
| display: inline-block; | |
| border-radius: 3px; | |
| padding: 1rem; | |
| margin: 0.5rem 1rem; | |
| width: 11rem; |