Skip to content

Instantly share code, notes, and snippets.

View shivamsupr's full-sized avatar
🏠
Working from home

Shivam Rastogi shivamsupr

🏠
Working from home
View GitHub Profile
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"deviceName":"iPhone X","platformName":"iOS","platformVersion":"12.1","orientation":"PORTRAIT","browserName":"safari","newCommandTimeout":240},"firstMatch":[{}]},"desiredCapabilities":{"deviceName":"iPhone X","platformName":"iOS","platformVersion":"12.1","orientation":"PORTRAIT","browserName":"safari","newCommandTimeout":240}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone X","platformName":"iOS","platformVersion":"12.1","orientation":"PORTRAIT","browserName":"safari","newCommandTimeout":240},null,{"alwaysMatch":{"deviceName":"iPhone X","platformName":"iOS","platformVersion":"12.1","orientation":"PORTRAIT","browserName":"safari","newCommandTimeout":240},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1561265459876 (10:20:59 GMT+0530 (India Standard Time))
[BaseDriver] The capabilitie
/**
----------------------------------------------------------------------
Jinja Macro with simple Call
----------------------------------------------------------------------
{% macro render_dialog(title, class='dialog') -%}
<div class="{{ class }}">
<h2>{{ title }}</h2>
<div class="contents">
{{ caller() }}
</div>
@shivamsupr
shivamsupr / horizontal-scroll.scss
Last active May 25, 2017 08:07
Make div or list scroll horizontally with overflow hidden
/*
Demo:
Codepen: https://codepen.io/shivamupr/full/GmeMOR/
(Check it in mobile view mode)
List Scroll: https://vimeo.com/218911885
Div Scroll: https://vimeo.com/218911851
*/
.scrl {