New answers tagged

3

I think this site can help you out. The bottom line is this picture: In your case, you can easily leave out the part about the Java Virtual Machine (JVM) since that is already present in Java Runtime Environment (JRE). Therefore, your requirement could read: RedactedApplicationName shall use Java Runtime Environment (JRE) 1.8.0_241 64bit.


2

It does something different. Java implementation shows: @Override public String getAttribute(String name) { return stringValueOf( execute(DriverCommand.GET_ELEMENT_ATTRIBUTE(id, name)) .getValue()); } and @Override public String getText() { Response response = execute(DriverCommand.GET_ELEMENT_TEXT(id)); return (String) response.getValue(); }...


0

This has been asked in the Stack Overflow community as well. See After run a SoapUI, could not start selenium Selenium UnreachableBrowserException - “Could not start a new session” in SoapUI Groovy TestStep The answer posted by user albciff, adding a ProxySelector, worked for me.


0

It's issue with Version compatibility. When i have upgraded Appium Server, It worked for me. Please try upgrading your Appium Server. I am the author of the below video in which i explained how i reolved. https://youtu.be/FTODdczjfDc Please let me know if you have resolved in any other ways.


0

getCellType returns a object with type CellType you should call the name() method to get the actual type from this object. public class ExcelReader { public static void main(String[] args) throws IOException { String path = "C:/Files/TestData1.xlsx"; FileInputStream fis = new FileInputStream(path); XSSFWorkbook workbook = new ...


0

Below code snippet is to check the element is exist or not .Please tryout the code .... public boolean isElementExist(WebElement element) { try { return element.isDisplayed(); } catch(NoSuchElementException e) { return false; } }


0

The World Wide Web Consortium provides a simple online tool (https://validator.w3.org/) that automatically check your HTML code and point out any problems/errors your code might have, such as missing closing tags or missing quotes around attributes.site map having this site is very attractive and goof Bubba Officials.


0

You can get the count of child elements under then you can implement if else condition like below if that child elements count equal to 2 which means your DOM has Previous and Next Arrows if that child elements count equal to 1 which means your DOM has only one Arrows( this scenario again verify that element is next arrow button or not) you can get count ...


-1

You should try out the TestProject test recorder which can locate elements within iFrames, so you’ll be able to inspect elements and their attributes easily.


1

I think you should click day picker next month arrow 1st, then only your element (Previous Month arrow ) will come and appear in the DOM After that you can verify that element present or not now your are checking not display and not present element in current DOM that's why it is throwing unable to find Such element


1

Check if you have correct sheet name. As you can see in stacktrace, error happens in ExcelUtil line 27. Debug/Print the sheet name to see if the value is correct.


1

driver.get().findElement(By.xpath("//div[@id='example_paginate']/span/a["+outerIndex+"]")).click(); Here when the page-load you are in index tab one already After the first iteration, you are again clicking the same tab as outerIndex is still 1 so it counts page one content twice So for fix, just keep the click action at the start ...


0

you can use TestNG annotation @dataprovider (It will keep running your @test with different set of Test-Data). Please find the below code snippet: @DataProvider(name="empLogin") public Object[][] loginData() { Object[][] arrayObject = getExcelData("D:/sampledoc.xls","Sheet1"); return arrayObject; } ...


0

We as a company are providing automation testing services. Our approach is to use Xpath as last priority i.e when no other option is available like ClassName, ID, LinkText, CSS etc. Here we can directly use "LinkText" and above can be make functional like using the below syntax. WebElement link = driver.findElement(By.linkText("Dados Pessoais&...


1

if html code is <div value="your expected text"> try: element.getAttribute("value") if html code is <div>your expected text<div> try element.gettext(); or element.getAttribute("innerHTML"); I met one fail case by gettext() but it worked by getAttribute("innerHTML") div is just a tag name used for ...


Top 50 recent answers are included