Tag Info

New answers tagged

0

You may find essential information on the official wiki: https://github.com/allure-framework/allure-core/wiki Also I suggest you to watch video from Selenium Conf 14 about that: https://www.youtube.com/watch?v=xrlS-7mLm0E


0

I also had the same problem in clicking the segment under a page then on the elements but could not click. I have a solution that worked for me and hope the below answer will work for you as well. Add the code snippet DesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability("ignoreZoomSetting", true); // Setting attribute ...


0

Split your long testcase into two -- one testcase does the stuff before the wait and returns a passing status if it was able to do start the process successfully. The second half of your original testcase runs as a separate testcase that you run at the end of your suite For example, if the test is "click the 'submit order' button and verify an email was ...


0

Friends, i got the resolution .To get rid this problem we can have following code required in our code: DesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability("ignoreZoomSetting", true); caps.setCapability("nativeEvents",false); driver = new InternetExplorerDriver(caps); I believe that we all are keeping the ...


1

Solved Error. I was missing main class of java so it was giving me error. Just added main class and then program runs successfully.


0

Basically getoptions() returns All options belonging to your select tag. It finds value in sequence. For example if we have array in java then when array display value from index 0 to end of array. In same way getoptions() start to get value from 1st select and go till last value.


0

A couple thoughts: Drivers may render pages differently depending on window size. If IE is broken using the same window size, try maximizing the browser window. You didn't say whether you actually checked the page source in your IE test to confirm that the element it claims to not be able to find is actually there. In AJAX-heavy pages, I've seen ...


-1

I haven't used the getOptions() function before, but with every other find or get function I've used in Selenium, the objects are returned in the order in which they appear in the page source. That said, why don't you just test it by tweaking your code to display the text of the elements, and see if they are in the same order you see in the browser?


1

MultiScreenShot I found following useful link in Github for Multiscreenshot


0

You can identify element using XPATH by utilizing display text as below: driver.findElement(By.xpath("//div[text()='Update Profile Picture']")).click();


1

You need to tell it to return the value. Change this line: String mainURL = (String) js.executeScript("productObj.mainURL"); to: String mainURL = (String) js.executeScript("return productObj.mainURL");


0

Every driver.manage().timeouts() value lives till the instance of the driver is alive, be it the default value or a custom value set by the user. So to answer your question- Once you set a driver.manage().timeouts().pageLoadTimeout() value it will remain constant throughout the lifetime of your driver instance. If you want to change the value you will have ...


0

The default pageLoadTimeout() is a member of Timeouts interface which is set to never in wevdriver according to this. But, it is possible to overwrite. See here


0

We use fancybox on our site, and it is usually inside of an iFrame (at least with our implementation). In order to find and interact with elements inside an iFrame, you have to switch your driver to the frame first. Here's a simple implementation in c#. var iframe = driver.FindElement(By.CssSelector("youriframeselector"); driver.SwitchTo().Frame(iframe); ...


0

First thing to check is for duplicate elements on the page. Debug your code and ensure that: driver.findElements(By.className("fancybox-item fancybox-close")).size() evaluates to 1 Often times, if Selenium doesn't complain when you do a .click() but the action you expect doesn't happen, you'll find that there is more than one element matching your Find.By ...


0

Ok, I found documentation for Appium that shows how to automate Chrome. Here is the link to the documentation. And here are the desired capabilities to send when you're starting the session: DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); ...


0

I have experienced the same thing. I believe that for some reason it stops executing Java scripts on the page once the focus to the browser is lost. My quick workaround was to create a Linux VM on my Mac, and do all the testing (and development) in it, because then the browser is always in focus, even when you do other stuff in the host OS.


0

After you driver.get(URL) to your page, you can execute javascript in it from webdriver, like this driver.get('javascript:<your JS snippet here>') so try driver.get('javascript:localStorage.clear();')


0

Someone develop a webdriverjs-helper: https://github.com/surevine/webdriverjs-helper This helper provide a function to get the values of a dropdown: browser.dropdownlist(selector).value(valueHandler) https://github.com/surevine/webdriverjs-helper#browserdropdownlistselectorvaluesvalueshandler


0

//create a list/array of the partner codes found within the source file List<MindsparkPartnerCode> records = new ArrayList<MindsparkPartnerCode>(); //set the location of the file and create a read buffer FileReader r = new FileReader("C:\\DailyLocalGuidePartnerCode.csv"); BufferedReader bfr = new ...


0

line contains nothing but commas. That causes line.split to return a zero-length array. Since the array is empty, chunks[0] causes an ArrayOutOfBoundsException.


2

You can use WebDriverWait to synch with page load. Something like the following might help WebDriverWait wait = new WebDriverWait(driver, 15); //you can play with the time integer to wait for longer than 15 seconds.` wait.until(ExpectedConditions.titleContains("title")); //if you want to wait for a particular title to show up OR ...


0

I have tested an ExtJS application. Most of the page element attributes are dynamic. They change not only when you add a new user or something, they change every time when you open the application. I have found the xpath expressions I get from the tools (Firebug etc.) is not very useful. Here is why: hard to read break easily hard to debug What I do ...


0

We can use something like By.xpath("//td[contains(text(),'youruser')]") //here user text is case sensitive By.xpath("//td[contains(lower-case(text()),'youruser')]") //to handle case sensitivity. Here user is not case sensitive


3

You should be splitting the xpath to fetch individual tables for clarity sake. I suggest the following: // Get the content or container WebElement content = driver.findElement(By.id("contentText")); //Get the table of users WebElement tblUsers = content.findElement(By.xpath(".//table/tbody/tr[2]/td/table/tbody/tr/td[1]/table")); // Get the rows which ...



Top 50 recent answers are included