The trials will allow referees to call on the video assistance to help determine four categories of game-changing moments - goals scored, red cards, penalties and mistaken identity.
According to Infantino, video replays would only be consulted in cases of goal decisions, and awarding of red cards and penalties. The English FA has already said it is keen to trial the technology in the FA Cup and Scottish FA chief executive Stewart Regan said it would also look to introduce it in the Scottish Cup.
New FIFA president Gianni Infantino announced the decision on Friday, calling it "a historic day for football".
"The flow of the game is crucial".
Mr Infantino is in Wales for the 130th International Football Association Board annual general meeting, which takes place in Cardiff.
Among the changes, the ball will be allowed to go in any direction at kickoff, more players will be permitted treatment on the field and referees will be urged to apply more common sense.
During the trials, a video assistant referee will have access to replays during the match and will either review an incident after a request by the referee or communicate with the official proactively about something they have spotted. The experiments of testing phase two will be modified based on findings of testing phase one.
Gianni Infantino replaced disgraced Sepp Blatter as the Federation Internationale de Football Association president. "The real live tests will be at the latest 2017-18, but we will start immediately, looking offline and online to fine tune everything and then it will be tested, in friendly matches as well".
After a long debate, The IFAB unanimously approved a new wording for Law 12 as submitted by UEFA and agreed that it should be implemented globally for a two-year trial period followed by a review by The IFAB.
"We need to make sure that we do everything that we possibly can, not only to prevent odd things happening around the bidding process, but also to prevent the perception that unusual things could happen", he said.
Claudio Ranieri, manager of Premier League leaders Leicester, believes the changes should be embraced, stating: "I think the technology helps everybody - players, managers, referees".
The IFAB is made up of the British collection of football associations and a FIFA delegate team. This ruling will come into effect from June, meaning it will be in force for the European Championship and the centenary edition of the Copa América.
Biden heads to Mideast for talks on security
Biden will also meet with Jordan's King Abdullah in Amman to discuss the fight against the Islamic State and the Syrian conflict, the White House added.