I want to click one but I couldn't click it with my standard code. You need to press F12 and select mobile emulator to see this mobile version of website. After then you can click button manually but you can't click it programmatically. I can't use API so I need to do it with web elements.
This is my standard code;
For Each obj1 In WebBrowser1.Document.GetElementsByTagName("div")
If (obj1.GetAttribute("class") = "_o5rm6 coreSpriteCameraInactive") Then
obj1.Click: Exit For
End If
Next
This is the button where I want to click:
Related
I want to launch(open) my app on single click of power button of android phone, How we detect single click event on power button. I tried onKey event but it detect only long click not single click. Anybody, have any idea? is there any broadcast receiver method for that?
I am trying to open a link on a button click in windows 10 Universal app. I used web view but it does not seem to work. how to open a url (eg. facebook.com or google.com) on a button click. I am using XAML and C#
Did you try this in Button Click event handler?
await Windows.System.Launcher.LaunchUriAsync(new Uri("uri address"));
I am writing tests using Geb. The browser I am using is Firefox. I want to click on a drop-down list that appears once the menu button is clicked. I can click on the menu button which gives me the drop-down list but I can't select the Item I want, Firefox just hangs. Chrome works just fine.
Here is my code :
container.menuButton.click() // this works fine. A list of appears.
container.menuOption("Coke").click() // the selection doesn't happen here it just hangs
How can I get Firefoxto work?
Is it allowed by Windows Phone application certification rules, to only have users be able to return to a previous screen with the use of a hardware back button?
In my scenario, a user clicks on a setting button and lands at a settings page. He changes settings if he decides to, and all the changes get saved automatically, like in iOS.
But currently, the only way for the user to get out of the settings screen, is to press a hardware Back button on the phone.
Will such implementation of navigation functionality pass the Windows Phone certification?
Yes - leave the back button as the navigation method to get back to your main page after visiting the settings page. Not only is this allowed, but it is the desired method of back navigation, and it is what Windows Phone users expect. Here is a great article on the subject: http://blogs.msdn.com/b/ptorr/archive/2011/10/06/back-means-back-not-forwards-not-sideways-but-back.aspx
As far as I understand the terms of the navigation guideline is your usage the right way to go.
Back button
Pressing the back button from the first screen of an application must exit the application.
Pressing the back button must return the application to the previous page.
If the current page displays a context menu or a dialog, the pressing the Back button must close the menu or dialog and cancel the
backward navigation to the previous page.
You should only implement back button behaviors that navigate back or dismiss context menus or modal dialog boxes. All other
implementations are prohibited.
See this cheat sheet for more informations on the design guidelines.
I need to debug the AJAX-Call (XHR) in Safari-Browser. I found the Developer-Console, but not the part where i can see the Ajax-Calls, like with Chrome where it is under Network.
Can someone show me the right way?
I found a way to debug AJAX-Calls (XHR) in Safari.
You need to get the Develop menu item
In the Safari Menu Click Preferences
In the Advanced Tab enable Show Develop menu in menu bar
Now you got the Develop Menu Item in the top-bar.
On the page, where you want to debug ajax,
Click the Develop Menu Item
Click Show Web Inspector or just use the keyboard shortcut: Option + Command + I
In the Web Inspector
Click the Network Tab
In the left-bottom corner Click All Resources
Send your ajax call (e.g. clicking button or link)
Now you find something like: index.php in the left window
If you double-click on this
You got your Debug / the ajax result in a new tab ;)
EDIT:
I made a mistake. That was the reason, why i didn't get an ajax-call in the Network-Tab:
Behind the gear-symbol on the right side of the Web Inspector you can configure this option: Show Scope Chain on pause.
Because of this, the Call was paused, and i got no ajax-load.