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
1,006 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,910 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,910 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, 2022 in Web Development by gaurav
• 23,260 points
636 views
0 votes
0 answers

How to get the value of a checkbox flipswitch in JQuery Mobile 1.4.5?

I'm using following markup to create a ...READ MORE

Aug 22, 2022 in Web Development by gaurav
• 23,260 points
300 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,880 points

edited Jan 21, 2020 by Niroj 2,444 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
12,615 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
8,571 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
6,629 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
7,517 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,910 points
86,984 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP