zwwcn

Just another WordPress.com site

Selenium exception: element is undefined

avoid to read the same field twice

replace

Assert.assertEquals(“expected  Windscreen Servicing got ” + leadpage.leadList.getEvent(0)   , “Windscreen Servicing” , leadpage.leadList.getEvent(0));

with

String event = leadpage.leadList.getEvent(0);

Assert.assertEquals(“expected  Windscreen Servicing got ” + event   , “Windscreen Servicing” ,event);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: