How to verify links that open in a new tab in phpUnit

0 votes

I have certain links on the website that I'm testing that open up in a new tab(target=_blank) and I want to verify that the opened page is the right one. I have found the solutions for selenium but does not seem to find any for phpunit (dusk 5.6). Since I only work with phpUnit ,is there any such command that allows me to do so? I have searched the entire php laravel dusk browser testing document available but got no help. TIA

Dec 14, 2020 in Web Development by Marium
• 120 points
374 views

2 answers to this question.

0 votes

Hello, @Marium,

Regarding your query I wold suggest you go through this: https://netbeans.apache.org/kb/docs/php/phpunit.html

answered Dec 14, 2020 by Gitika
• 65,970 points

Gitika I have gone through it but didn't find anything relevant there..

Hi @Marium,

Even I was facing the same issue and I got a help here https://semaphoreci.com/community/tutorials/getting-started-with-phpunit-in-laravel

You can have a look. Hope it helps!

0 votes

Hey @Marium,

What do you mean by "the opened page is right one"

answered Dec 14, 2020 by Gitika
• 65,970 points

Related Questions In Web Development

+1 vote
1 answer

How to access the Angularjs scope of a particular html element from our console?

Hello, You should follow the below steps:-- 1.Compile and ...READ MORE

answered Jan 21, 2020 in Web Development by Niroj
• 82,880 points

edited Jan 21, 2020 by Niroj 310 views
0 votes
1 answer

How to track with Google Analytics on a redirection page with PHP?

Hello @kartik, Since the page that is sending ...READ MORE

answered Jul 7, 2020 in Web Development by Niroj
• 82,880 points
698 views
0 votes
1 answer

How to deny direct access to a folder and file by htaccess?

Hello @kartik, Just move the includes folder out of the ...READ MORE

answered Aug 24, 2020 in Web Development by Niroj
• 82,880 points
4,861 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
6,224 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
6,578 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
4,203 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
5,208 views
0 votes
1 answer

Error: Failed to load resource: the server responded with a status of 404 (Not Found)

Your files are not under the JSP folder that's ...READ MORE

answered Dec 16, 2020 in Web Development by Gitika
• 65,970 points
25,181 views