Tag Info

New answers tagged

0

Are you creating object for the RemoteWebdriver class and setting the capablities for the firefox browser and chrome browser, on which you want to run the tests ex:RemoteWebDriver driver=new RemoteWebDriver(); capability = DesiredCapabilities.firefox(); Pass the capability object to the driver.


2

You can get the nodevalue of the element using Javascript document.getElementsByClassName('dialog-components')[0].getElementsByTagName('h2')[0].childNodes[2].nodeValue; Use executescript to execute JavaScript in the context of the currently selected frame or window Below is an example in java Don't forget to add return since you need to return the ...


-1

In Python: browser = webdriver.Firefox() browser.quit


0

This is an interesting question that I have been pondering myself. I am currently using a PageObject design using PageFactory IWebElements (C#). I do not follow this requirement: "Methods return other PageObjects". I will share my design and let others decide if this approach is "also" bad. This approach may do what you are trying to do but a little ...


0

Where ever the selenium library is running is where the browser will run. If you are planning on putting this on a server, you'll have trouble if there is nobody logged in to the console. You should look at Selenium Grid which allows the browser to run on a different machine. There are cloud based services for these clients, for example, Browser Stack ...


0

YAGNI: You ain't gonna need it. So why do extra work if you will not need it? Link from "original wiki", created by Ward Cunningham in 1995 and recommended read for all software developers: YAGNI: "Always implement things when you actually need them, never when you just foresee that you [may] need them."


0

driver.manage().timeouts().implicitlyWait(2000, TimeUnit.MILLISECONDS); driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS); in my code, above 2 lines used and I comment the second line my application is working fine. //driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);


0

No, no and no. :) Do not initialize all your page objects at the start, what if your application keeps growing and growing. We already have hundreds of page objects, this could potential slow down all your tests in the suite. We always use the following way to access a Page: "Methods return other PageObjects" Example from Ubuntu acceptance testing: An ...


0

Important Java concepts with respect to Selenium : Condition statement and looping statement Exception Handling Methods of Sting class List and Set Upcasting and Runtime Polymorphism Oops concepts with examples


0

I just changed Erki M. code a bit, it worked perfectly with me: public static void waitForAjax(WebDriver driver) { new WebDriverWait(driver, 180).until(new ExpectedCondition<Boolean>() { public Boolean apply(WebDriver driver) { JavascriptExecutor js = (JavascriptExecutor) driver; return (Boolean) ...


0

From your steps it seems you haven't installed selenium package for Node.js. Execute npm install selenium-webdriver Then run the test again


-1

ToolsQA is awesome. Please have a look and do go step by step. You will learn quite a bit.


0

In this case, I think you should capture the element first, just use capture by cssSelector. driver.findElement(By.CSSSelector("span.appt-details-dropdown-service-title")).click(); OR, if the element is not captured by using CSS above, I think this element is temporary hidden then we should use ActionClass to action on the parent element first, --> click ...


1

There are at least 2 approaches: If Jenkins is used in your company, you create a job that runs tests and then e-mails report by Email ext plugin. Or you can add such functionality to @BeforeSuite method with JavaMail.


0


0

I've handled this before by killing the process with driver.quit(); and then re-initializing the driver and getting the URL. That will definitely kill the session, because it's running in a new JVM. Since it's the same test, you can still pass strings and integers to the new driver. Simplified Example: driver.quit(); driver = new firefoxdriver(); ...


0

I wouldn't use webdriver. Simply copy the url as a variable and plug it into curl (or equivalent).


-3

yes, I have done with C#,Downloading the file using webdriver and C#. I Have Explain It in More detail and with full example.It will really Helpful. you can reach it on below link: Download PDF file in selenium Webdriver C#


0

Bar code reader can't be tested. If you are using TestNG then you can do load testing,please read this


0

You can't simulate a recovery from a system crash (either loss of internet or machine crash). I'd usually cover these manually to ensure that the devs are posting data in an appropriate transaction (to avoid partial posts).


-1

You should Know Object oriented Concepts by using any programmig language like: C#, Java etc. You should know the Collection framework in C# or Java to handle the objects. You should know the HTML. You should know JavaScript. you should know Excel manipulation in java or C#. you should know how t connect database in java JDBC and in c# ADO.Net. You should ...


0

1- As you said you dont want to use any Third Party tool, then you can not handle windows browse or upload file button using selenium because its syntax is like this- Example: <input type="file" id="browsecv" name="browsecv"> /<input> or you can search it on below link and then inspect for **"browse"** button link: ...



Top 50 recent answers are included