logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Elm  
#1 Posted : 8 years ago
Elm

Rank: Member

Groups: Registered
Joined: 5/30/2016(UTC)
Posts: 14
France

Thanks: 4 times
Hi,

Is there a way to delete a PageObject that I've added on a PDF page ?
I see no delete nor remove method in the Page.PageObjects collection.

Thanks

Edited by user 8 years ago  | Reason: Not specified

Silvio23  
#2 Posted : 8 years ago
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
I'm afraid currently there is no the way to do that.
But I can suggest the workaround.
You may reload the page by calling the Page.Dispose() method (It will be loaded again automaticaly at first usage of any property or method).
Then you may add all needed objects again except the deleted one.
thanks 1 user thanked Guest for this useful post.
Elm on 1/13/2017(UTC)
Elm  
#3 Posted : 8 years ago
Elm

Rank: Member

Groups: Registered
Joined: 5/30/2016(UTC)
Posts: 14
France

Thanks: 4 times
Originally Posted by: Guest Go to Quoted Post
I'm afraid currently there is no the way to do that.
But I can suggest the workaround.
You may reload the page by calling the Page.Dispose() method (It will be loaded again automaticaly at first usage of any property or method).
Then you may add all needed objects again except the deleted one.


Thanks Silvio,
This is already what I was doing but there were side effects, some pages where still showing the objects even though I was not reloading them.
There must be some cache somehow.
Calling the Dispose() method solved this !
Everything now work as exepected

Thanks !
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.