Hello everybody,
I can not click on link that has into href a javascript.
When i send command “click” and target id of my link it says me that element couldn’t be found.
How can i resolve this problem?
Thanks a lot.
Anastasiev Maxim said:
Hello everybody,
I can not click on link that has into href a javascript.
When i send command “click” and target id of my link it says me that element couldn’t be found.
How can i resolve this problem?
Thanks a lot.
try it
Noor said:
Anastasiev Maxim said:
Hello everybody,
I can not click on link that has into href a javascript.
When i send command “click” and target id of my link it says me that element couldn’t be found.
How can i resolve this problem?
Thanks a lot.try it
java - Selenium clicking a link where the href is javascript:void[0]; - Stack Overflow
TNX!
But in katalon recorder it doesnot helps)
Can you share the link to the site (if it’s not a closed system for dev)?
Noor said:
Can you share the link to the site (if it’s not a closed system for dev)?
This is business site, because of this i can not share with somebody.
But i can send an example of code.
Anastasiev Maxim said:
Noor said:
Can you share the link to the site (if it’s not a closed system for dev)?
This is business site, because of this i can not share with somebody.
But i can send an example of code.
Hi Max try
https://docs.katalon.com/display/KD/[WebUI]+Execute+JavaScript
for example for this form
http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html
i used submitform**()** from href
WebUI.navigateToUrl('http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html')WebUI.executeJavaScript("submitform()", null)
You can try to use something like
WebUI.navigateToUrl('<your_business_site>')WebUI.executeJavaScript("SendForm('push_values', '5', '3', '', '0','','','','')", null)
Noor said:
Anastasiev Maxim said:
Noor said:
Can you share the link to the site (if it’s not a closed system for dev)?
This is business site, because of this i can not share with somebody.
But i can send an example of code.
Hi Max try
https://docs.katalon.com/display/KD/[WebUI]+Execute+JavaScript
for example for this form
http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html
i used submitform**()** from hrefWebUI.navigateToUrl('http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html')WebUI.executeJavaScript("submitform()", null)
You can try to use something likeWebUI.navigateToUrl(‘<your_business_site>’)WebUI.executeJavaScript(“SendForm(‘push_values’, ‘5’, ‘3’, ‘’, ‘0’,‘’,‘’,‘’,‘’)”, null)
Thank you!
But at work i can use only Katalon Recorder and command “executeJavaScript” is not supported.
Did you know how can i otherwise execute this script?
Anastasiev Maxim said:
Noor said:
Anastasiev Maxim said:
Noor said:
Can you share the link to the site (if it’s not a closed system for dev)?
This is business site, because of this i can not share with somebody.
But i can send an example of code.
Hi Max try
https://docs.katalon.com/display/KD/[WebUI]+Execute+JavaScript
for example for this form
http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html
i used submitform**()** from hrefWebUI.navigateToUrl('http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html')WebUI.executeJavaScript("submitform()", null)
You can try to use something likeWebUI.navigateToUrl(‘<your_business_site>’)WebUI.executeJavaScript(“SendForm(‘push_values’, ‘5’, ‘3’, ‘’, ‘0’,‘’,‘’,‘’,‘’)”, null)
Thank you!
But at work i can use only Katalon Recorder and command “executeJavaScript” is not supported.
Did you know how can i otherwise execute this script?
Just checked in Katalon Recorder … you can use a command **addScript **and **Target = **SendForm(‘push_values’, ‘5’, ‘3’, ‘’, ‘0’,‘’,‘’,‘’,‘’)
Noor said:
Anastasiev Maxim said:
Noor said:
Anastasiev Maxim said:
Noor said:
Can you share the link to the site (if it’s not a closed system for dev)?
This is business site, because of this i can not share with somebody.
But i can send an example of code.
Hi Max try
https://docs.katalon.com/display/KD/[WebUI]+Execute+JavaScript
for example for this form
JavaScript Form Submit example
i used submitform**()** from hrefWebUI.navigateToUrl('http://javascript-coder.com/files/form-submit/javascript-form-submit-example.html')WebUI.executeJavaScript("submitform()", null)
You can try to use something likeWebUI.navigateToUrl(‘<your_business_site>’)WebUI.executeJavaScript(“SendForm(‘push_values’, ‘5’, ‘3’, ‘’, ‘0’,‘’,‘’,‘’,‘’)”, null)
Thank you!
But at work i can use only Katalon Recorder and command “executeJavaScript” is not supported.
Did you know how can i otherwise execute this script?Just checked in Katalon Recorder … you can use a command **addScript **and **Target = **SendForm(‘push_values’, ‘5’, ‘3’, ‘’, ‘0’,‘’,‘’,‘’,‘’)
Screen capture - daec1dac938212fd4f5103a196813a7b - Gyazo
Thank you this works!
Also i have a quection, how can i upload an file on site with Katalon?
i can’t check it now but i guess it could be
command: type (field for filename)
target: id=file (id's of your field)
value: C:\fakepath\filename.txt (path and file name)