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

cannot create and use xpath with parameter inside #48

Open
IonutMoldovan opened this issue Sep 23, 2019 · 0 comments
Open

cannot create and use xpath with parameter inside #48

IonutMoldovan opened this issue Sep 23, 2019 · 0 comments

Comments

@IonutMoldovan
Copy link

IonutMoldovan commented Sep 23, 2019

cannot use xpath with parameter

exemple of one

public static By ActionsButton(String text) {
	return By.xpath(String.format("//div[contains(@class,'actions')][not(contains(@style,'none'))]/a[text()='"+text+"']", text));
}

you should be able to provide an exemple after you get this working , this is a feature needed in most automation frameworks.

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