does anyone know if there is a similar command to robotium's
solo.clickOnText within MonkeyTalk?
or how to do the same with javascript?
thanks for your help.
Update:
I have found in monkeyTalk syntax - to tap on any component labeled "ok"
View OK Tap
but for some reason the script says it has run ok, but nothing happens on the app.
When I record the action with the recorder it uses the
Table ITEM selectIndex 1
with the same result.
This is a native Android app and the solo.clickOnText command works well with Robotium, but we were wanting to try MonkeyTalk as it is quicker to record.
Robotium now also supports recording http://robotium.com/
Related
mixpanel-2-latest.min.js:9 Mixpanel error: "mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.
From the last couple of days, I am seeing this error in the console when I do inspect element in my Google Chrome. I am using the latest Chrome version 64. I am not using mixpanel. It's also showing up if I open any public website. Any idea how to resolve this error?
Check your extensions, for me it was 'Page Ruler' (https://chrome.google.com/webstore/detail/page-ruler/jlpkojjdgbllmedoapgfodplfhcbnbpn?hl=nl) that caused this error. Systematically disable all extensions until the error does not occur anymore.
I started getting this error out of the blue. It was the chrome extension PageRuler. I trashed PageRuler and the error went away.
Alternatively, you can go to Page Ruler's options menu, and uncheck "Send Anonymous Usage Statistics".
This will enable you to continue using the extensions without seeing the error message.
That's correct. The Page ruler plugin is the one who cause the console error "Mixpanel error: "mixpanel" object not initialized".
Disable it and all good to go
"Free Video Downloader" is another cause.
Check your extensions, for me, it was 'Page Ruler'.
No need to remove 'Page Ruler', Instead of removing do the following...
Page Ruler's options menu, and uncheck "Send Anonymous Usage Statistics".
I checked all given answere in here. All sayed to disable the "Send Anonymous Usage Statistics" checkbox in the settings....
I think hiding a problem is not solving a problem. Since there were a newer version of PageRuler (i had 2.1.2, newest is currently 2.1.3) I deinstalled the old one, reinstalled the new one and from now on, no matter if I send stats or not, error doesn't appaers anymore.
It's been 5 hours i'm struggling with Meteor.
I want to get Geolocation.latLng(). It works perfectly on my browser, I coupled it with GoogleMaps to put a marker on a map. I'm following this example and didn't touch it much.
When I compile on iOS the Geolocation returns weird errors on my simulator (iPhone 6 / iOS 8.3) such as Geolocation failed : Position retrieval timed out, sometimes it's another one which's very similar (note : it asks me if i want to share my location when i launch the app, and i accept)
Sometimes it says it just compiled and I get an old version of my app too.
What's happening ? Is it me or it's really THAT buggy once you try to make a real world project ?
This to-do list tutorial looked very magic but once you understood how it works and you try something real, it's kind of disappointing ... Sounds very unstable and not ready.
Don't hesitate to tell me if i'm doing something wrong ;)
UPDATE : i've searched a lot more and i'm now trying to setup differently the timeout limit of the geolocation package to avoid this error.
Sadly, i realized timeout : Infinity is the default value of the source : sounds like an issue.
Nothing is working so far. If anyone has an idea, let me know on that too ...
I finally made it work. First I realized you have to setup the accessRule thank to Lucas's answer but it wasn't enough.
// In a mobile-config.js in the project
App.accessRule('*://maps.googleapis.com/*');
The iOS Simulator provided by Apple seems to have bugs : the position isn't retrieved correctly, or not at all. It's only working if i set the the Debug > Location to City Ride ; even Apple wasn't working properly on my hand.
If nothing works for you, just try all the possible Location, it might be the problem.
Have you define an accessRule in your mobile-config.js? If not, try this.
App.accessRule('*://maps.googleapis.com/*');
Here, clone this sample app I put together a while back:
https://github.com/ffxsam/whats-nearby
It works on desktop as well as mobile. All you have to do is add a settings.json and add your Google Places API key in there.
{
"apiKey": "...."
}
I am novice to automation testing and have started using Selenium IDE as the choice for automation.
I just want to know if there is any way to handle java-script alerts using IDE.
Take a scenario: I am clicking on "Delete" button and there comes a java-script alert box with OK and Cancel options, but Xpath can not identified for these elements.On the other hand, when I make a script for click event on delete button and run it using Selenium IDE, the element gets automatically deleted.
So, guys please help. Leave a reply in case my question needs to be elaborated.
Thanks in advance.
Take a look at the documentation. The main part is this:
When running under Selenium, JavaScript pop-ups will not appear. This
is because the function calls are actually being overridden at runtime
by Selenium’s own JavaScript. However, just because you cannot see the
pop-up doesn’t mean you don’t have to deal with it. To handle a
pop-up, you must call its assertFoo(pattern) function. If you fail to
assert the presence of a pop-up your next command will be blocked and
you will get an error similar to the following
[error] Error: There was an unexpected Confirmation! [Chose an option.]
A step-by-step manual is in the section about Alerts.
java-script alerts in ide can be handle using selenium commands storeAlert and
storeConfirmation what it will do is it Retrieves the message of a JavaScript confirmation or alert dialog generated during the previous action. this commands can be put at the position where the alert will occur
command:storeAlert
Target:variableName
command:storeConfirmation
Target:variableName
variable name is the variable in which the occurred alert will store
Thank you..
I am a chronic user of Firebug, and I frequently need to log various stuff so that I can see what I am doing. The console.log function is a lot to type. Even if I assign it to a single letter variable like q = console.log, I have to do it every time I fire up Firebug. Is there any way to do it such that q always refer to console.log (unless, of course, I override it in my session)?
To answer your question, the functionality doesn't currently exist, however I have found the firebug developers to be very responsive in the past. Why don't you put in a feature request on their forum, or better yet, code it up yourself, and ask them to add it?
Depending on your IDE, simply setup a code snippet (I use Flash Develop, so Tools -> Code Snippets).
I believe this to be a better way than setting up redirect scripts and what not, because it stops the Firebug namespace from being polluted, and makes it easier/more consistent to debug if your debugging breaks down.
The screenshot shows me using Flash Develop, hitting Ctrl+B, then hit enter. The pipe (|) in the snippet indicates where the cursor will be placed to start typing after inserting the snippet.
I want to run some JavaScript code when my iPhone app enters foreground.
So I did this:
- (void)applicationWillEnterForeground:(UIApplication *)application {
NSLog(#"1");
[self.viewController.webView stringByEvaluatingJavaScriptFromString:#"window.alert('ok');"];
NSLog(#"2");
}
When I run it and switch the app from back- to foreground, the logs just display "1" but not "2" and I get no alert message.
What's going on?
Ps.: I use Phonegap.
I found the cause for the problem. self.viewController.webView in AppDelegate.m seems to be the wrong reference.
I guess it's a Phonegap issue.
So, I worked around this by simply using Phonegap's onResume event. http://docs.phonegap.com/en/1.0.0/phonegap_events_events.md.html#resume
That did the trick.