New answers tagged

0

Class and ID are auto-generating so I think that you should change xpath to contain (text(),'text of element') or anything that was fixed.


1

WebDriver is a way to automate browsers, it doesnt really matter which language binding you use to implement WebDriver testcases, it is possible with all languages (e.g. C#, Python, Ruby, Java, JavaScript, etc..). All web applications use HTML, CSS and JavaScript. So it is all the same. Protractor makes it easier to automate an application developed in ...


1

It's an easy solution, you just need to import all the js functions, create an object of those functions and use it in your test fixtures


0

WebElement extends TakesScreenshot, which means you can use getScreenshotAs on the WebElement directly. You can public void takeElementScreenshot(WebElement element) { driver.executeScript("arguments[0].scrollIntoView();", element); File screenshot = ele.getScreenshotAs(OutputType.FILE); //... } We can check if the element is in viewport ...


Top 50 recent answers are included