http://mashable.com/2014/03/
March 2014
Selenium WebDriver – AdvanceUserInteractions API – Move and click on specific coordinates
- Working on Desktop Browsers(mostly known) using Selenium WebDriver
- Working on Mobile Browsers(ChromeDriver, SafariDriver) using Appium
Selenium WebDriver : getSize() Vs getLocation()
getSize() : will return the “Dimension” object, from which we can get Height and Width of specific element
Dimension vDimesions = vDriver.findElement(By.id(“id
System.out.println(“Height :” + vDimesions.height + ”Width : “+ vDimesions.width);
getLocation() : will return the “Point” object, from which we can get X and Y coordinates of specific element
Point vPoint=driver.findElement(By.id(“id
Swap two integers
public void swapInts(int x, int y)
{
System.out.println(“before X =”+x+”Y=”+y);
x = x + y;
y = x – y;
x = x – y;
System.out.println(“after X =”+x+”Y=”+y);
}
public static void main(String args[])
{
Swapvalues vSwapvalues = new Swapvalues();
vSwapvalues.swapInts(7, 8);
}
}
What is a branch? What is a fork
Fork is another way of saying clone or copy. The term fork (in programming) derives from an Unix system call that created a copy of an existing process. So unlike a branch, a fork is independent from the original repository. If the original repository is deleted, the fork remains. If you fork a repository you get that repository and all of its branches.
As DVCS hosting evolved, the term fork evolved. The Bitbucket software adds management to forks; forking a repository in Bitbucket has functionality you normally wouldn’t associate with a simple DVCS clone. For example, on Bitbucket, you can always see which repository the fork came from. This isn’t the case with a DVCS clone on your local system.
A comparison of branching and forking
- You don’t want to manage user access on your repository.
- You want fine-grain control over merging.
- You expressly want to support independent branches.
- You want to discard experiments and changes easily.
The Bitbucket team recommends branching for development teams on Bitbucket; We use a modified form of Vincent Driessen’s GitFlow technique. Bitbucket branches are useful when:
- You have a small group of programers who trust each other and are in close communication.
- You are willing to give the development team write access to a repository.
- You have a rapid iteration cycle.
Cloning a repository fork or branch
Convert a Mercurial Repository to Git
- mkdir myrepo; cd myrepo;
- git clone git://repo.or.cz/fast-export.git .
- rm -rf .git .gitignore
- git init
- ./hg-fast-export.sh -r ../path/to/local/hg/repo
- git clean -f # remove fast-export files
Error: “ENOENT”
It’s an abbreviation of Error NO ENTry, and can actually be used for more than files/directories.
Cause:
No such file or directory. This is a “file doesn’t exist” error for ordinary files that are referenced in contexts where they are expected to already exist.
source