java.lang.nullpointerexception in Maven Project with Selenium and TestNG [duplicate]












-1
















This question already has an answer here:




  • NullPointerException in my code. How to deal with it

    1 answer



  • java.lang.NullPointerException using static WebDriver instance

    1 answer



  • Getting error exception in thread “main” java.lang.NullPointerException

    2 answers



  • Exception in thread “main” java.lang.NullPointerException using WebDriver Driver=new Chrome() and maximize Chrome browser window using selenium script

    4 answers




The project runs perfectly fine as java project. But if I create a maven project and run the same code it shows null pointer exception.



enter image description here










share|improve this question















marked as duplicate by DebanjanB selenium
Users with the  selenium badge can single-handedly close selenium questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 29 '18 at 8:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















  • How can able to help you, If you don't give any code?

    – Kandy
    Dec 29 '18 at 6:13











  • According to your screenshot, the NullPointer occurs at line 146 of AppTest class. So, have a breakpoint there and debug to see what is null.

    – Prasad Karunagoda
    Dec 29 '18 at 6:16











  • where your code is ?

    – NarendraR
    Dec 29 '18 at 6:16
















-1
















This question already has an answer here:




  • NullPointerException in my code. How to deal with it

    1 answer



  • java.lang.NullPointerException using static WebDriver instance

    1 answer



  • Getting error exception in thread “main” java.lang.NullPointerException

    2 answers



  • Exception in thread “main” java.lang.NullPointerException using WebDriver Driver=new Chrome() and maximize Chrome browser window using selenium script

    4 answers




The project runs perfectly fine as java project. But if I create a maven project and run the same code it shows null pointer exception.



enter image description here










share|improve this question















marked as duplicate by DebanjanB selenium
Users with the  selenium badge can single-handedly close selenium questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 29 '18 at 8:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















  • How can able to help you, If you don't give any code?

    – Kandy
    Dec 29 '18 at 6:13











  • According to your screenshot, the NullPointer occurs at line 146 of AppTest class. So, have a breakpoint there and debug to see what is null.

    – Prasad Karunagoda
    Dec 29 '18 at 6:16











  • where your code is ?

    – NarendraR
    Dec 29 '18 at 6:16














-1












-1








-1









This question already has an answer here:




  • NullPointerException in my code. How to deal with it

    1 answer



  • java.lang.NullPointerException using static WebDriver instance

    1 answer



  • Getting error exception in thread “main” java.lang.NullPointerException

    2 answers



  • Exception in thread “main” java.lang.NullPointerException using WebDriver Driver=new Chrome() and maximize Chrome browser window using selenium script

    4 answers




The project runs perfectly fine as java project. But if I create a maven project and run the same code it shows null pointer exception.



enter image description here










share|improve this question

















This question already has an answer here:




  • NullPointerException in my code. How to deal with it

    1 answer



  • java.lang.NullPointerException using static WebDriver instance

    1 answer



  • Getting error exception in thread “main” java.lang.NullPointerException

    2 answers



  • Exception in thread “main” java.lang.NullPointerException using WebDriver Driver=new Chrome() and maximize Chrome browser window using selenium script

    4 answers




The project runs perfectly fine as java project. But if I create a maven project and run the same code it shows null pointer exception.



enter image description here





This question already has an answer here:




  • NullPointerException in my code. How to deal with it

    1 answer



  • java.lang.NullPointerException using static WebDriver instance

    1 answer



  • Getting error exception in thread “main” java.lang.NullPointerException

    2 answers



  • Exception in thread “main” java.lang.NullPointerException using WebDriver Driver=new Chrome() and maximize Chrome browser window using selenium script

    4 answers








java maven selenium testng






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 29 '18 at 6:21









NarendraR

3,83161743




3,83161743










asked Dec 29 '18 at 6:04









Divesh SoniDivesh Soni

1




1




marked as duplicate by DebanjanB selenium
Users with the  selenium badge can single-handedly close selenium questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 29 '18 at 8:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by DebanjanB selenium
Users with the  selenium badge can single-handedly close selenium questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Dec 29 '18 at 8:05


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • How can able to help you, If you don't give any code?

    – Kandy
    Dec 29 '18 at 6:13











  • According to your screenshot, the NullPointer occurs at line 146 of AppTest class. So, have a breakpoint there and debug to see what is null.

    – Prasad Karunagoda
    Dec 29 '18 at 6:16











  • where your code is ?

    – NarendraR
    Dec 29 '18 at 6:16



















  • How can able to help you, If you don't give any code?

    – Kandy
    Dec 29 '18 at 6:13











  • According to your screenshot, the NullPointer occurs at line 146 of AppTest class. So, have a breakpoint there and debug to see what is null.

    – Prasad Karunagoda
    Dec 29 '18 at 6:16











  • where your code is ?

    – NarendraR
    Dec 29 '18 at 6:16

















How can able to help you, If you don't give any code?

– Kandy
Dec 29 '18 at 6:13





How can able to help you, If you don't give any code?

– Kandy
Dec 29 '18 at 6:13













According to your screenshot, the NullPointer occurs at line 146 of AppTest class. So, have a breakpoint there and debug to see what is null.

– Prasad Karunagoda
Dec 29 '18 at 6:16





According to your screenshot, the NullPointer occurs at line 146 of AppTest class. So, have a breakpoint there and debug to see what is null.

– Prasad Karunagoda
Dec 29 '18 at 6:16













where your code is ?

– NarendraR
Dec 29 '18 at 6:16





where your code is ?

– NarendraR
Dec 29 '18 at 6:16












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas