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
481 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,870 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,870 points

Related Questions In Web Development

0 votes
0 answers

How to add a link in Jquery PrettyPhoto to download the image

I am using Jquery PrettyPhoto to have ...READ MORE

Jun 29 in Web Development by gaurav
• 17,580 points
14 views
+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,740 points

edited Jan 21, 2020 by Niroj 850 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,740 points
930 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
8,108 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
7,237 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,910 points
4,978 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
6,187 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,870 points
59,428 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP