Question

How to Set Property in Java Step

Hi ,

I am passing ClipboardPage as in Input Parameter to a fucntion . The page is initialised before passing into the function . I am trying to set a property on that page using below code , I am getting a null pointer exception . Is this the correct way to set the property on a page in function .

OutPut.getProperty("RepeatedWords").setValue("test");

Correct Answer
June 26, 2019 - 3:22am

Hello, 

Can you do it with this maybe: myPageWork.putString("Team", strTeam);

Comments

Keep up to date on this post and subscribe to comments

June 26, 2019 - 3:22am

Hello, 

Can you do it with this maybe: myPageWork.putString("Team", strTeam);

June 26, 2019 - 3:33am
Response to MarcLasserre_GCS

Thanks it worked.