# Forgot Password

**URL:** <https://forum.katalon.com/t/forgot-password/11967>\
**Category:** Miscellaneous\
**Created:** [July 10, 2018, 3:01pm UTC](https://forum.katalon.com/t/forgot-password/11967 "2018-07-10T15:01:19Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 17, 2018, 2:44pm UTC](https://forum.katalon.com/t/forgot-password/11967/21 "2018-07-17T14:44:17Z")

</div>

![](https://s3.amazonaws.com/katalon-forum/editor/q0/ao9cfzt2cdog.png "Image: https://s3.amazonaws.com/katalon-forum/editor/q0/ao9cfzt2cdog.png")

I have already changed the xpath still its showing same error. I think I also need to add value for this. What do you think?

[xpath 1.png](https://s3.amazonaws.com/katalon-forum/editor/q0/ao9cfzt2cdog.png)

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 17, 2018, 2:47pm UTC](https://forum.katalon.com/t/forgot-password/11967/22 "2018-07-17T14:47:01Z")

</div>

that should be ok or chenge it to: id(‘mail’)

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 17, 2018, 2:53pm UTC](https://forum.katalon.com/t/forgot-password/11967/23 "2018-07-17T14:53:01Z")

</div>

again same error ☹

Test Cases/CreateTemEmail FAILED because (of) Unable to get attribute ‘value’ of object ‘Object Repository/Forgot Password/Page\_Temp Mail - Disposable Tempora/input\_mail’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Forgot Password/Page\_Temp Mail - Disposable Tempora/input\_mail’ located by ‘By.xpath: id(“mail”)[count(. | //_[@value = ‘tidefobum@99pubblicita.com’]) = count(//_[@value = ‘tidefobum@99pubblicita.com’])]’ not found)

I think the problem lies on dynamic email which is store in values. everytime the email is getting changed so that’s the reason may be it not found the correct path to store that object.  
What do you say @Andrej Podhajský

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 17, 2018, 3:01pm UTC](https://forum.katalon.com/t/forgot-password/11967/24 "2018-07-17T15:01:26Z")

</div>

I have also found error that path is getting underline. I suppose it must have some error but it not reflected anywhere. Please comment on that.  
 ![](https://s3.amazonaws.com/katalon-forum/editor/4o/0ykslrezu8dn.png "Image: https://s3.amazonaws.com/katalon-forum/editor/4o/0ykslrezu8dn.png")

[path.png](https://s3.amazonaws.com/katalon-forum/editor/4o/0ykslrezu8dn.png)

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 17, 2018, 3:14pm UTC](https://forum.katalon.com/t/forgot-password/11967/25 "2018-07-17T15:14:14Z")

</div>

You can also visit my code again to clear understanding of my script

-----------------------------Test case 1 for creatTemEmail

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘[https://temp-mail.org/en/](https://temp-mail.org/en/)’)

GlobalVariable.varTemEmail = WebUI.getAttribute(findTestObject(‘Object Repository/Forgot Password/Page\_Temp Mail - Disposable Tempora/input\_mail’), ‘value’)

println GlobalVariable.varTemEmail

WebUI.waitForPageLoad(5)

WebUI.callTestCase(findTestCase(‘ForgotPassword’),[(‘path’):‘[https://www.workilo.com/](https://www.workilo.com/)’])

…ForgotPassword

String currentPage = WebUI.getUrl()

int currentTab = WebUI.getWindowIndex()

WebDriver driver = DriverFactory.getWebDriver()

JavascriptExecutor js = ((driver) as JavascriptExecutor)

js.executeScript(‘window.open();’)

WebUI.switchToWindowIndex(currentTab + 1)

WebUI.navigateToUrl(path)

WebUI.maximizeWindow()

WebUI.waitForElementVisible(findTestObject(‘Page\_Workilo Welcome/a\_Sign Up (1)’), 0)

WebUI.click(findTestObject(‘Page\_Workilo Welcome/a\_Sign Up (1)’))

WebUI.click(findTestObject(‘Page\_Workilo Welcome/a\_Customer (1)’))

//Map CreateTemEmail\_called = WebUI.callTestCase(findTestCase(“CreateTemEmail”), [:])

//println CreateTemEmail\_called[‘CreateTemEmailVar’]

System.out.println(GlobalVariable.varTemEmail)

WebUI.setText(findTestObject(‘Object Repository/Forgot Password/input\_mail’),GlobalVariable.varTemEmail )

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 12:13am UTC](https://forum.katalon.com/t/forgot-password/11967/26 "2018-07-18T00:13:37Z")

</div>

nazneen,  
problem is in definition of test object of mail address i cannot understand why it still uses value "tidefobum@99pubblicita.com" to search for this input field when i guess e-mail you are getting is different. please double/tripple check how is defined  
or better - create one from scratch with just xpath=id(‘mail’)

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 7:59am UTC](https://forum.katalon.com/t/forgot-password/11967/27 "2018-07-18T07:59:59Z")

</div>

@Andrej Podhajský

I have created both test cases from scratch also created object repository for create mail and forgot password but still faces the same error.

Test Cases/CreateTemEmail FAILED because (of) Unable to set text ‘yaruc@fxprix.com’ of object ‘Object Repository/Page\_Temp Mail - Disposable Tempora/input\_mail’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_Temp Mail - Disposable Tempora/input\_mail’ located by ‘By.xpath: //input[@id=(‘mail’)]’ not found)

Can you please tell me what should be the possible way to avoid this error? I am now totally helpless and clueless ☹

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 8:56am UTC](https://forum.katalon.com/t/forgot-password/11967/28 "2018-07-18T08:56:23Z")

</div>

nazneen,  
i write my own script and try to connect to that service using Katalon, but page did not open…  
this could be a root cause:  
 ![](https://s3.amazonaws.com/katalon-forum/editor/ce/2wg1wyh3898w.png)

[image.png](https://s3.amazonaws.com/katalon-forum/editor/ce/2wg1wyh3898w.png)

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 9:21am UTC](https://forum.katalon.com/t/forgot-password/11967/29 "2018-07-18T09:21:09Z")

</div>

@Andrej Podhajský

Now I am using other tem-email “[https://www.tempmailaddress.com/](https://www.tempmailaddress.com/)”

and this time I found this error.Please look into this from the below line of code:

Cases/CreateTemEmail FAILED because (of) Unable to send keys ‘null’ to object ‘Object Repository/Page\_Temp Mail - Disposable Tempora/Page\_TempMailAddress Disposable Te/span\_kamsiyochukwu.macenlron0r’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_Temp Mail - Disposable Tempora/Page\_TempMailAddress Disposable Te/span\_kamsiyochukwu.macenlron0r’ located by ‘By.xpath: //span[@id=‘email’]’ not found)

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 9:25am UTC](https://forum.katalon.com/t/forgot-password/11967/30 "2018-07-18T09:25:41Z")

</div>

> Andrej Podhajský said:
> 
> nazneen,  
> i write my own script and try to connect to that service using Katalon, but page did not open…  
> this could be a root cause:  
> ![](https://s3.amazonaws.com/katalon-forum/editor/ce/2wg1wyh3898w.png)

You must use “[https://temp-mail.org/](https://temp-mail.org/)” inspite of this “[https://temp-mail.org/en/](https://temp-mail.org/en/)” it also showing error at my side dont know why?

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 10:18am UTC](https://forum.katalon.com/t/forgot-password/11967/31 "2018-07-18T10:18:04Z")

</div>

no automation using browser is allowed  
check this:  
[https://www.guerrillamail.com/GuerrillaMailAPI.html](https://www.guerrillamail.com/GuerrillaMailAPI.html)

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 10:27am UTC](https://forum.katalon.com/t/forgot-password/11967/32 "2018-07-18T10:27:44Z")

</div>

> [Andrej Podhajský](https://forum.katalon.com/profile/2584/Andrej%20Podhajsk%C3%BD "Link: /profile/2584/Andrej%20Podhajsk%C3%BD") said:
> 
> no automation using browser is allowed  
> check this:  
> [Guerrilla Mail API](https://www.guerrillamail.com/GuerrillaMailAPI.html)

what is the use of this site?

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 10:39am UTC](https://forum.katalon.com/t/forgot-password/11967/33 "2018-07-18T10:39:47Z")

</div>

it’s free email box site like you were using, but without payment… other sites wants you to pay after some ammount of mail/day recieved.

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 10:52am UTC](https://forum.katalon.com/t/forgot-password/11967/34 "2018-07-18T10:52:08Z")

</div>

Oh That’s a great News but I have never used api in my script so can you please guide me how can i use this into my script? how can I initiate script and all.?

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 11:13am UTC](https://forum.katalon.com/t/forgot-password/11967/35 "2018-07-18T11:13:54Z")

</div>

one thing … i try to use FF with your script and works … did you run it with chome or firefox?  
my script : (i have different variables but script is doing same as your TC1 1st part - get mail

```auto
WebUI.openBrowser('https://temp-mail.org/en/')GlobalVariable.testVar = WebUI.getText(findTestObject('__Sandbox/mailInputField'))println GlobalVariable.testVar

```

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 11:33am UTC](https://forum.katalon.com/t/forgot-password/11967/36 "2018-07-18T11:33:42Z")

</div>

> Andrej Podhajský said:
> 
> one thing … i try to use FF with your script and works … did you run it with chome or firefox?  
> my script : (i have different variables but script is doing same as your TC1 1st part - get mail
> 
> ```auto
> 
> ```

> ```auto
> 
> ```

I am using chrome Version 67.0.3396.99

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 11:43am UTC](https://forum.katalon.com/t/forgot-password/11967/37 "2018-07-18T11:43:20Z")

</div>

just for test, please try to run it on firefox

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 12:19pm UTC](https://forum.katalon.com/t/forgot-password/11967/38 "2018-07-18T12:19:20Z")

</div>

So should I need to create object repository in terms of firefox?

I have ran the same script in ff and found the error:

Test Cases/CreateTemEmail FAILED because (of) Unable to click on object ‘Object Repository/Page\_Workilo Welcome/a\_Sign Up (1)’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_Workilo Welcome/a\_Sign Up (1)’ located by ‘By.xpath: /html[@class=“ua-windows\_nt ua-windows\_nt-6 ua-windows\_nt-6-3 ua-chrome ua-chrome-67 ua-chrome-67-0 ua-chrome-67-0-3396 ua-chrome-67-0-3396-99 ua-desktop ua-desktop-windows ua-webkit ua-webkit-537 ua-webkit-537-36 js webkit chrome win js”]/body[1]/header[@class=“not-logged-in”]/div[@class=“container clearfix”]/div[@class=“user-actions”]/ul[1]/li[2]/a[@class=“signup-trigger btn-lg”][count(. | //a[@href = ‘javascript:void(0)’ and (text() = ‘Sign Up’ or . = ‘Sign Up’)]) = count(//a[@href = ‘javascript:void(0)’ and (text() = ‘Sign Up’ or . = ‘Sign Up’)])]’ not found)

May be I need to change the object repository acc to FF.

---

<div class="post-metadata">

**Author:** ![nazneen](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nazneen](https://forum.katalon.com/u/nazneen)\
**Post date:** [July 18, 2018, 12:25pm UTC](https://forum.katalon.com/t/forgot-password/11967/39 "2018-07-18T12:25:42Z")

</div>

> > [Andrej Podhajský](https://forum.katalon.com/profile/2584/Andrej%20Podhajsk%C3%BD) said:
> > 
> > one thing … i try to use FF with your script and works … did you run it with chome or firefox?  
> > my script : (i have different variables but script is doing same as your TC1 1st part - get mail
> > 
> > ```auto
> > WebUI.openBrowser('https://temp-mail.org/en/')GlobalVariable.testVar = WebUI.getText(findTestObject('__Sandbox/mailInputField'))println GlobalVariable.testVar
> > 
> > ```

> > ```auto
> > 
> >   
> > 
> > ```
> 
> Andrej can you share your code with me?

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [July 18, 2018, 12:33pm UTC](https://forum.katalon.com/t/forgot-password/11967/40 "2018-07-18T12:33:18Z")

</div>

since we are step further,  
change definition of ‘Object Repository/Page\_Workilo Welcome/a\_Sign Up (1)’ to  
xpath=//a[text() = ‘Sign Up’]

[Previous page](https://forum.katalon.com/t/forgot-password/11967.md?page=1)

[Next page](https://forum.katalon.com/t/forgot-password/11967.md?page=3)
