Websites with class subject

Hello everyone,

I’m an informatics student and I do not speak English very well.

I have a project that the target is to visualize in a web page our school hours of a class.

The websites with the school hours is: http://orario.cpt.local/invite

Go on “Aule”, then in the text box write the class (for example: “A-420 lab”, you can see also the list), then the page show the timetable of the class.

This is the part of code where I visualize that site:

    <iframe src="http://www.cpt-ti.ch/orario/invite?invite=true"></iframe>  

The problem is that I can’t insert directly on the URL the class that I want and I need to make in other way.

With Katalon Studio I can visulize the page directly with the class that I want, but I don’t know how to insert the istruction in the iframe.

Thank you in advance

Alessia Lella

Hi Alessia

Are you trying to send text to the “Inserim. nome” element?

If that’s the case, and if the page is inside of an iframe, first thing to do is switching to the iframe. But maybe it is easier just starting the script on http://www.cpt-ti.ch/orario/invite?invite=true
Anyway:

TestObject myFrame = WebUI.modifyObjectProperty(findTestObject('myFrame'), 'css', 'equals', 'iframe[src="http://www.cpt-ti.ch/orario/invite?invite=true"]', true)
WebUI.switchToFrame(findTestObject('myFrame'), 5)

Than send text to the “Inserim. nome” element:

TestObject myInput = WebUI.modifyObjectProperty(findTestObject('myInput'), 'css', 'equals', 'input[id="GInterface.Instances[1].Instances[1].bouton_Edit"]', true)
WebUI.sendText('myInput', 'A-420 lab')