Unable to get Clickable button in UI Automator Viewer - java

I am trying to automate clickable button for a react-native based Application. I was stopped getting clickable button as in UI Automator Viewer displaying clickable button status FALSE. So, can you suggest me any other alternative way to automate the clickable action using Appium.
Using Selenium 3.5.3 version, Appium for Windows 1_4_16_1.
Image 1
Image2

First: start using appium-desktop and not an old appium server 1.4.16, but 1.7.x
Second: ReactNative app is interpreted as Native application, so you need to use Appium on client side, not Selenium
Final: In appium-desktop you can directly try to click your button to see if it works.

Related

How can I get the network-"Status" of an webelement?

i am using Selenium Webdriver on Java and I am trying to get the network status of every element with a network status like you can see in the image below.
Is there any way to get the status?
Edit:
I guess I cannot upload images. If you press F12 to open the dev-tools there is a network menu. If you click on it, the status of every webelement will show up there.
AFAIK DevTools and Networking tab controls are not natively supported by Selenium.

Appium IOS Native app find element by label

Can we find an ios native application button by it's label using appium ?
Using Accessiblity Inspector, only labels can be found.
We do not have the source of the app that we seek automate, it's already installed.
Thanks !
You can consider the following alternatives to the accessibility inspector:
Appium iOS Inspector
Appium Desktop
Appium Studio
Also be aware that you can always stick to the label attribute by using XPath Selector like:
//*[#label='your label text here']
Unstead of IOSDriver ,we were using RemoteWebDriver, wich lacks many features.
Now, we're using Accessibility ID.

How to scroll vertically in appium for hybrid app using java

I am automating a hybrid app and I want scroll vertically from top to bottom in a page which is in web view. I am using java client-5.0.4 and appium version is v1.7.2
enter image description here
You can swipe in an app with appium using the press method. E.g. :
TouchAction().press(el0).moveTo(el1).release()
It also works with coordinates if you wish to use that instead of webelements.
More information on touch actions can be found here : https://appium.io/docs/en/writing-running-appium/touch-actions/

CRM 2015 Automation Testing using selenium, Change Focus after Click

I'm using Selenium scripts using Java to automate a project in CRM 2015. When I tried to click on a button using IE Webdriver it navigates correctly but focus still on clicked button and then cannot find any controls as It's implement using Single App page. Could you please give me workaround ? I tried :
driver.switchTo().defaultcontent();
driver.switchTo().ActiveElement();
but not working and still on clicked button focus.

Unable to click on Submit button in Remote Machine where BitDefender is installed using Webdriver in Java. Please find the details below

Unable to click on Submit button in Remote Machine where BitDefender is installed using Webdriver in Java. The issue is:
I have to execute my test scripts by creating a jar file in Remote Machine, where BitDefender is installed in it. when executing the jar file in IE browser in Remote Machine, I am Unable to click on Submit button (find Screenshot1), because the BitDefender tool bar is coming on Submit button when running it using Webdriver. I am getting an Exception here.
Actually when executing it Manually, I can click on Submit button with out any issues, i can click on it as in Screenshot2
Please can any one help me out on this issue without closing or moving the BitDefender tool bar in IE browser. Help will be appreciated.
Using the Actions() class.
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.id("submit")).moveByOffset(x,y).click().build().perform();
//where x and y are the visible lower right corner of the button - you can find its dimensions from firebug or similar
Finally, if the element is actually part of a form you can just call the .submit() method on that form. Which would actually avoid having to click on the hidden button entirely.

Categories

Resources