maven


How to display error messages in log file from webpage while executing in maven.But am getting nullpointer exception


While using this code am getting null pointer exception.
I used this type of code.
if(sFirstName.isEmpty()){
Log.info(driver.findElement(By.id("inputFirstName")).getText());
}else{
Log.info(driver.findElement(By.id("inputLastName")).getText());
}
- `List item`

Related Links

How can I build a jar (with all it's dependencies) in maven? [duplicate]
Configuration error while executing cucumber-jvm + testNG?
Create package from four unique projects not under same parent?
Maven copy parents declared in the POMs
deploy gives Failed to execute goal error
Why success of build depends on folder name? (maven/selenium)
How to overriding the maven's url when running gradle
How to include custom classes in GWT
Maven versions-maven-plugin versions plugin 2.2
Is there a way to build a project and the projects that depend on it from different multimodule projects in maven?
Maven deploy snapshot or release based off of profile
Is there a way to automatically download and set up a Bluemix Liberty Profile instance?
How to copy files with IntelliJ
scm connection vs developerConnection
Locally caching specific artifacts in Nexus
Prevent Maven from removing $ (dollar sign) from archetype resources?

Categories

HOME
java
compiler-construction
arduino-uno
gitlab
push-notification
relayjs
cplex
azure-storage-tables
directx
google-translate
spring-kafka
google-cloud-spanner
size
worldwind
opentracing
highlight.js
saxon
angular-ui
pugjs
excel-vba-mac
contextmenu
dbext
predix
visjs
object-detection
physics-engine
orleans
bootstrap-material-design
fluentvalidation
log4js-node
data-manipulation
exuberant-ctags
contact-form
mapdb
sequential
fusionpbx
suricata
bitbucket-pipelines
libraries
elasticsearch-plugin
avro4s
nand2tetris
password-encryption
import-from-excel
gpx
smartcontracts
dandelion
ionicons
blogengine.net
winscp-net
domain-model
hls.js
return-value
togetherjs
drupal-6
np-complete
memory-alignment
elements
gridview-sorting
holder.js
moveit
testng-dataprovider
asp.net5
unity-networking
thredds
cannon.js
libressl
dukescript
createprocessasuser
unity5.2.3
streambase
offloading
jsonpickle
c3
rdl
flask-cors
dml
ember-charts
centos5
prettify
gnu-smalltalk
spring-io
padarn
plasma
cassini-dev
wsdl-2.0
dice
objective-c-2.0
bubble-chart
windows-phone-7.1.1
netbeans-6.9
adk
external-accessory
yui-datatable
xfbml
substrings
kdbg
virtual-functions

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App