Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClickOnwebElement not working #872

Open
Rubhal opened this issue May 23, 2017 · 0 comments
Open

ClickOnwebElement not working #872

Rubhal opened this issue May 23, 2017 · 0 comments

Comments

@Rubhal
Copy link

Rubhal commented May 23, 2017

Hi,
I am trying to click on a button inside web view.
My test code is:
public void testButtonClick() throws Exception{
WebView webView = (WebView) solo.getView(R.id.webView1);
solo.waitForView(webView, 2000, false);
By installButton=By.xpath("//button[@Class="price buy id-track-click id-track-impression"]");
solo.waitForWebElement(installButton, 60000, false);
solo.clickOnWebElement(installButton, 0, false);
}

I am loading the webpage with url:
https://play.google.com/store/apps/details?id=com.whatsapp&hl=en

I have to click on the install button automatically. When i run this code i am getting webelement with xpath not found. please help me with this issue.

Thanks in advance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant