C# Selnium | JavaScript (in Chrome Dev Tools) |
---|---|
driver |
document |
driver.FindElement(By.Id("someId")) |
document.getElementById("someId") |
driver.FindElements(By.ClassName("someClassName")) |
document.getElementsByClassName("someClassName") |
driver.FindElement(By.CssSlector("#some-id .some-css-class tag")) |
document.querySelector("#some-id .some-css-class tag") |
driver.FindElements(By.CssSlector("#some-id .some-css-class tag")) |
document.querySelectorAll("#some-id .some-css-class tag") |
driver.FindElements(By.XPath("//*[@id='categories-menu']/li")) |
$x("//*[@id='categories-menu']/li") |
id (2): !0 | |
reflexive (3): NaN | |
transitive (9): '0',!1,'' | |
counter (13): (x=0)=>y=>++x | |
peano (7): 2**53-1 |
const Airplane = { | |
getName() { | |
return `${this.name}` | |
} | |
} | |
const AirbusA380 = { | |
name: 'Airbus A380', | |
getName() { | |
return `${Airplane.getName.call(this)} of ${this.airline}` |
it('should go to external page after clicking on CTA button', () => { // it's not click per se - we use element's href attribute | |
cy.get('a[href*="redirect"]') //finds all redirect links | |
.each(($linkElement) => { | |
const internalUrl = $linkElement.attr('href'); | |
cy.log(`Checking redirect for ${internalUrl}`); | |
cy.getExternalRedirect(internalUrl) // gets 302 redirect | |
.as('externalRedirect'); // saves the request as alias for the assertions |
// es-5 compatible | |
function supportsPositionSticky() { | |
var element = document.createElement('div'); | |
return ['', '-o-', '-webkit-', '-moz-', '-ms-'].filter(function(prefix) { | |
element.style.position = prefix + 'sticky'; | |
return element.style.position === 'sticky'; | |
}).length !== 0; | |
} | |
// es-next compatible |
I was reading various resources and came up with the following definition:
Sketchnoting is form of making notes and incorporating visuals into the text (or text into the visuals).
Long story short: the reader's brain can digest a given piece of information more easily.
People are in general (at least in 65%) visual learners. They pay attention to graphical content and are able to remember pictures extremely well. You probably heard this quote:
FROM paritytech/ci-linux:production as builder | |
LABEL description="This is the build stage for Jack Block. Here we create the binary." | |
ARG PROFILE=release | |
WORKDIR /substrate | |
COPY . /substrate | |
RUN cargo build --$PROFILE |
I'm a business-oriented principal software engineer who can:
-
guide the approach and execution of a software delivery team (serve as a Tech Lead);
-
be responsible for the direction, quality and approach, while combining in-depth knowledge of technical constraints, user needs, and organizational level leadership (serve as an Architect);
-
dig deep into arbitrarily complex problems and find an appropriate path forward (serve as a Solver);
const ATTR_FORCE_RELOAD = "forceReload"; | |
export function cleanUpFroceReloadSideEffects() { | |
const nextUrl = new URL(window.location.href); | |
nextUrl.searchParams.delete(ATTR_FORCE_RELOAD); | |
console.log(nextUrl); | |
window.history.replaceState(null, null, nextUrl); |