Hi,
I was unable to click on a element in my Application which i am trying to automate. I have a floating element to compose which is same as “Compose” button in gmail app.
Please find the UI Dump, Image for the same.
Hi,
I was unable to click on a element in my Application which i am trying to automate. I have a floating element to compose which is same as “Compose” button in gmail app.
Please find the UI Dump, Image for the same.
I tried to click the button using below code, it was throwing ArrayIndexOutOfBound exception with “7” as max index, So tried to click the element changing the index from 0-6 but it was not working.
My code:
wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(“android.widget.Button”).get(7)))).click();
Please send me other methods which i can use to click on that button.