Skip to content

Instantly share code, notes, and snippets.

public class SmokeTest {
private WebDriver driver;
@BeforeClass
public void beforeClass() {
WebDriverManager.chromedriver().setup();
ChromeOptions options = new ChromeOptions();
driver = new ChromeDriver(options);
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
driver.manage().window().maximize();
@dtopuzov
dtopuzov / upgrade-to-nativescript-rc
Last active October 16, 2018 14:56
Upgrade to {N} RC
# Install {N} CLI
npm un -g nativescript
npm i -g nativescript@rc
# Navigate to your app
cd <your-app>
# Cleanup before upgrade
rm -rf node_modules
rm -rf platforms
@dtopuzov
dtopuzov / App Accessibility in NativeScript.md
Last active August 22, 2016 16:32
App Accessibility in NativeScript

App Accessibility in NativeScript

Native App Accessibility

A well-designed user interface (UI) often has elements that don't require an explicit label to indicate their purpose to the user. A checkbox next to an item in a task list application has a fairly obvious purpose, as does a trash can in a file manager application. However, to your users with vision impairment, other UI cues are needed. Fortunately, both iOS and Android provide APIs for making apps accessible to people with disabilities. Moreover, both platforms provide tools and technologies (like TalkBack and VoiceOver) that can make the lives of the visually impaired easier.

NativeScript Accessibility

The NativeScript framework produces native apps. Thus, all vendor tools for impaired users work right out of the box. Also, all popular automation tools and frameworks that are based on native Android and iO