Code: Select all
;button html code
<div class="button-strip" reversed="">
<button class="print default">Print</button>
<button class="cancel">Cancel</button>
</div>
;copies number box html code
<div class="settings-box" id="copies-settings-box">
<input class="user-value" type="number" value="1" maxlength="3" max="999" min="1" aria-labelledby="copies-label" id="copies">
<div class="collate-container checkbox" aria-live="polite" hidden=""><label>
<input class="collate" type="checkbox" checked="" aria-labelledby="copies-collate-label">
<span id="copies-collate-label">Harmanla</span>
</label></div>
</div>
When we enter the print menu in chrome, in the html codes given above,
I want java code running in selenium.
print "2" in the number of copies box and
I want to click on the "Print" button.
How to write codes?
Thank you.