package Ġcom . atlassian . performance . tools . jira actions . api . page Ċ Ċ import Ġcom . atlassian . performance . tools . jira actions . page . form . Issue Form Ċ import Ġorg . openqa . selenium . By Ċ import Ġorg . openqa . selenium . WebDriver Ċ import Ġorg . openqa . selenium . support . ui . Expected Conditions .* Ċ import Ġjava . time . Duration Ċ Ċ class ĠEdit Issue Page ( ĊĠĠĠ Ġprivate Ġval Ġdriver : ĠWebDriver Ċ ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġform Ġ= ĠIssue Form ( By . id (" issue - edit "), Ġdriver ) ĊĠĠĠ Ġprivate Ġval Ġsummary Locator Ġ= ĠBy . id (" summary ") ĊĠĠĠ Ġprivate Ġval Ġdescription Locator Ġ= ĠBy . id (" description ") ĊĠĠĠ Ġprivate Ġval Ġupdate Button Locator Ġ= ĠBy . id (" issue - edit - submit ") ĊĊĠĠĠ Ġfun ĠwaitFor Edit Issue Form (): ĠEdit Issue Page Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġj ira Errors Ġ= ĠJira Errors ( driver ) ĊĠĠĠĠĠĠĠ Ġdriver . wait ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtimeout Ġ= ĠDuration . of Seconds ( 5 ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcondition Ġ= Ġor ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpresence Of Element Loc ated ( update Button Locator ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġj ira Errors . any Common Error (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġj ira Errors . any Common Warning () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġj ira Errors . assert No Errors () ĊĠĠĠĠĠĠĠ Ġdriver . tol erate Dirty Forms On Current Page () ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġfill Form (): ĠEdit Issue Page Ġ{ ĊĠĠĠĠĠĠĠ Ġsummary Locator . clear And Type If Present (" summary ") ĊĠĠĠĠĠĠĠ Ġdescription Locator . clear And Type If Present (" description ") ĊĠĠĠĠĠĠĠ Ġform . fill Required Fields () ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġsubmit (): ĠIssue Page Ġ{ ĊĠĠĠĠĠĠĠ Ġdriver . findElement ( update Button Locator ). click () ĊĠĠĠĠĠĠĠ Ġreturn ĠIssue Page ( driver ). waitFor Summary () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun ĠBy . clear And Type If Present ( text : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( driver . is Element Present ( this )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġweb Element Ġ= Ġdriver . findElement ( this ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdriver . wait ( timeout Ġ= ĠDuration . of Seconds ( 2 ), Ġcondition Ġ= Ġelement ToBe Clickable ( web Element )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġweb Element . clear () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġweb Element . send Keys ( text ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }