Tutorial by Examples

Lets take fb login as testcase,will see how to capture and export as JAVA class Click on the selenium IDE icon on top right corner of your browser Enter the url https://facebook.com Click on Record button , as shown in the screenshot Export the usecase as java file Save the file in you lo...
Installation : Open Firefox browser.click on menu and select Add-ons Search for selenium IDE Install selenium IDE Add-on in firefox. Restart the Firefox. If the selenium IDE is installed successfully then you can see the icon on top of the browser By clicking on thi...
Adapters are used to convert the interface of a given class, known as an Adaptee, into another interface, called the Target. Operations on the Target are called by a Client, and those operations are adapted by the Adapter and passed on to the Adaptee. In Swift, Adapters can often be formed through ...
A Facade provides a unified, high-level interface to subsystem interfaces. This allows for simpler, safer access to the more general facilities of a subsystem. The following is an example of a Facade used to set and retrieve objects in UserDefaults. enum Defaults { static func set(_ object:...
// setup an event bus, do it in a separate js file var bus = new Vue() // imagine a component where you require to pass on a data property // or a computed property or a method! Vue.component('card', { template: `<div class='card'> Name: <div class='margin-5'> ...
Right click in MAIN folder > New > Folder > Assets Folder. Assets folder will be under MAIN folder with the same symbol as RES folder. In this example I put a font file.
public class TabAdapter extends FragmentPagerAdapter { CustomTypefaceSpan fonte; List<Fragment> fragments = new ArrayList<>(4); private String[] icons = {"\ue001","\uE002","\uE003","\uE004"}; public TabAdapter(FragmentManager fm, CustomType...
$ cat hello.sh #!/bin/bash echo "Hello World" $ bash -x hello.sh + echo Hello World Hello World The -x argument enables you to walk through each line in the script. One good example is here: $ cat hello.sh #!/bin/bash echo "Hello World\n" adding_string_to_number=...
Solarized has two options - light and dark mode. Light Mode: syntax enable set background=light colorscheme solarized Dark Mode: syntax enable set background=dark colorscheme solarized
Assuming we have a working laravel application running in, say, "mylaravel.com",we want our application to show a "Hello World" message when we hit the URL http://mylaravel.com/helloworld . It involves the creation of two files (the view and the controller) and the modification o...
Controller Function Controller function is nothing but just a JavaScript constructor function. Hence, when a view loads the function context(this) is set to the controller object. Case 1 : this.constFunction = function() { ... } It is created in the controller object, not on $scope. views can ...
Openfire setup it's based on a combination of xml configuration and database entries. After first installation, run Openfire will leads to deploy a web administration panel listening on port 9090. Endpoint to access it's typically on http://machinenamewhereinstalled:9090 and flagged on Openfire's lo...
You can use cell references without row numbers. For instance, the formula =sum(C:C) will add up all the values in column C of the active sheet. This is helpful when you are adding and removing rows but don't want to update your formulas each time. There are some instances when using this whole co...
Why do we need it? Content extension helps us to create custom user interface upon notification expanasion. You use this framework to define an extension that receives the notification data and provides the corresponding visual representation. Your extension can also respond to custom actions asso...
In xCode Navigator window go to Targets section. Press Add New Target. Select Notification Content Extension template: In your info.plist file set the identifier for UNNotificationExtensionCategory key: NSExtensionAttributes: UNNotificationExtensionCategory (Required) The value of t...
There are variety of gsp tags available which can be used to create forms, textfield, radio buttons, check boxes, if-else, for each etc. <g:if> <g:if test="${session.role == 'admin'}"> <%-- show administrative functions --%> </g:if> <g:else> <%-...
Pack your com.stackoverflow.${whatever} clases on a jar called stackoverflow.jar Create folder com/stackoverflow/main on ${WILDFLY_HOME}/modules Put the jar on the last dir Create a file called module.xml with the following content: <?xml version="1.0" encoding="UTF-8"...
For some reason you develop a new version of com.stackoverflow (say version 1.1), then you should: Create folder com/stackoverflow/1.1 on ${WILDFLY_HOME}/modules Put the new jar on last dir Create file module.xml on last dir with the following content <?xml version="1.0" encodin...
By default modules are placed on ${WILDFLY}/modules directory but you can have more directories with modules, just edit your standalone.conf (or standalone.conf.bat if you are on Microsoft Windows) and properly set the variable JBOSS_MODULEPATH For example in Unix/Linux/MacOSX: JBOSS_MODULEPATH=&q...
A common mistake is to forget surrounding compound function arguments with parentheses, leading to type errors. # string_of_int 1+1;; Error: This expression has type string but an expression was expected of type int This is because of the precedence. In fact, the above evaluates to # (string...

Page 1194 of 1336