public static bool LokiPoe.InGameState.NpcDialogUi.AcceptQuest()
Click the Accept Quest button. To know if the button is visible, just check AcceptQuestWrapper and make sure is not null.
Returns: A Boolean result. The member description explains the condition being checked.