FileMaker Pro UI Scripting - applescript

I'm trying to import a script from one DB into another in FMP12 and found no other way then using UI scripting.
Most of the time the script stuck when I need to mark the checkbox, complaining that the UI element cannot be found, but as visible on the picture, it is referenced properly, at least this is how I see it:
Pls visit the link for the picture showing the problem, it is much clearer then if I write it down: https://www.dropbox.com/s/y8c7xuazrb5cvlq/Screenshot_25_4_13_3_08_PM.jpg
The funny think is that sometimes the script works fine and I cannot figure out what is making it working fine sometimes.
Any idea what am I doing wrong, or if there is some other way to refer to that UI element?
Thanks
Zsolt

Related

Cypress interaction with elements outside the DOM

I am kind of new here, although I read often the posts, that is why, first of all, a big thank you for all the help we get here. If there is someone using Cypress, I have a problem with accessing a print dialog which is outside the DOM. I want to close the print dialog but I cannot access it using the Cypress commands. I had the same problem with Python and Selenium, but there I managed to install AutoGui and this helped me out.
Anyone had the same problem and found a solution to it? Thank you in advance.
** **

Form1.vb [Design] is empty

so I have this project that I use for work, and I went in to add some features.
It's basically a customized calculator.
While I was working, I clicked on my Form1.vb [Design] to look at my form. (Which is my main form)
I got a Windows Forms Designer error page. It had a problem with a particular line of code, even though the app ran and functioned correctly. I've come across this before a few times. I always clicked "Ignore and continue" and it was fine. This time my main form (Form1) was completely blank as if it was a new form. all of the code for my buttons/text boxes, etc... is still there.
is there a way to get it back? is it just hidden somewhere?
If anyone knows what's going on, I would really appreciate any help you could offer.
I attached a screenshot of my last working version of the app. Before the additions I was trying to implement.
I'm not super knowledgeable with coding, but I get by with some intermediate projects.
So I apologize if I don't know a lot of the terminology.
Thank you.

Qtp element recognition through diff modules

Ok this may be a vague question but I have an issue recognizing a webelement in one module (tab) but works completely fine in another tab. This is the same webelement. Everything seems to be same. It's the same form on the gui side with same properties and values.
Now this is another weird part, I can add one to the object repository but when I go to the other tab and try the same qtp becomes extremely slow. The + sign for adding it to the repository appears but when I click it, it gives me a message saying this object cannot be added to the repository.
The Web app uses extJS if that matters and this is a high level webelement that has a constant html id. I'm just puzzled as to why it works in one module but not the other.
There are also some subtabs where you can click on this form. Those work fine but when it comes to capturing this element the issue persists.
Any hypothesis as to why this is happening?
Okay it looks like it works when I took off the visible identification and just identifying it by the html id. I still don't get why taking the visible made a diff but it works.

what function is being called?

i am not sure that this is the right place to ask this question, but i will anyway. i have only been working with html / javascript & jquery for about 2 months, but i have learned a little.
this is what i am trying to do. i have a free image gallery that i managed to included in a website i am trying to make. the gallery works fine, and i have set it up so that on top of each image is a button that fires a short .mp4.
it works fine, but when i click the gallery button to show the next page of pictures (about 15 per page), there are my old buttons. i think, just maybe if i could figure out what js or jq function id being called i may be able to swap in new buttons.
but i cannot understand what is happening. i looked for an onclick, but what they use is a bunch of "this" statements. i am pretty sure they are using an anchor tag to flip the page, but i can't figure out what is being called.
so i came across this site, and after about 10 attempts, finally got the thing to let me join.
i'm hoping i can post the code and maybe somebody could tell me what is happening.
i guess this wasn't much of a question, just an appeal for assistance.
Are you asking how you can debug your code? If you are using Chrome, you can use its Javascript debugger. Similarly, Firebug is a good developer plugin for Firefox.

Can I load multiple libraries using google.load(...)?

On Google code playgorund, I tried to load multiple library like below
google.load("jquery", "1");
google.load("mootools", "1.2.1");
But it breaks the code, why ? Thanks
EDIT: In the left hand pane in playground, I select Library and then jquery, its runs just fine but when I also add mootools in the code, it won't work and I don't see any message even when clicking on debug.
Since you don't provide any information what breaks, all I can say is: It should work. Next time, post an error message or something similar.
[EDIT] Maybe there is a bug in google.load(). I suggest to set a breakpoint and to step through the function to see where it hangs.

Resources