Last active
September 20, 2018 22:33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//great: | |
processReturnsButton = new element(driver, By.id("process_return_button")); | |
//sure, no problem (except I'd probably externalize the strings, see https://jws-testing-blog.blogspot.com/2018/09/automation-strategy-externalize-all.html) | |
processTheseItemsButton = new element(driver, By.xpath("//a[text()='Process These Items']")); | |
createReturnTextLabel = new element(driver, By.xpath("//span[text()='Create Return']")); | |
processReturnsTextLabel = new element(driver, By.xpath("//span[text()='Process Returns']")); | |
//not so great: | |
identificationNumber = new element(driver, By.xpath("//table[starts-with(@id,'details_table_')]/tbody/tr/th[text()='Identification Number']")); | |
orderTitleTextLabel = new element(driver, By.xpath("//*[@id=\"content\"]/form/div[1]/h2")); | |
userTextLabel = new element(driver, By.xpath("//table[@class='order_notes']/tbody/tr/th[text()='User']")); | |
roleTextLabel = new element(driver, By.xpath("//table[@class='order_notes']/tbody/tr/th[text()='Role']")); | |
noteTextLabel = new element(driver, By.xpath("//table[@class='order_notes']/tbody/tr/th[text()='Note:']")); | |
firstNoteAddedPstTimeTextLabel = new element(driver, By.xpath("//table[@class='order_notes']/tbody/tr[2]/td[1]")); | |
secondNoteAddedPstTimeTextLabel = new element(driver, By.xpath("//table[@class='order_notes']/tbody/tr[2]/td[4]")); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment