find element inside element selenium python chrome driver
I'm facing a issue when I try to get element inside of an element. I tried 2 methods to achieve this but unfortunately didn't get success.element_list =...
View ArticleHow to handle window popup using winium in a selenium project
I am invoking a web application using selenium web driver. After invoking, it will trigger a authentication popup (window popup) which can't be handled using selenium web driver. So I am planning to...
View ArticleClick on button based on its Value in Selenium Python
There is HTML code like bellow:<input type="button" name="" value="back" onclick="window.history.back(1)" class="back-btn"> and I want to click on it based on its value (back):elements =...
View Articlejava.lang.NullPointerException for below code
Could see java.lang.NullPointerException for this code and unable to see the root cause from my side. I appreciate your help.exception is java.lang.NullPointerException at...
View ArticleHow to get text of element without tags from the DOM
I'm usingself.driver.find_element("//table//tr//td//b[contains(.,'Description')]//following-sibling::text()[1]").text also...
View ArticleHow to disable the side bar in Opera browser in Selenium-Java using...
In new version of Opera browsers, Side bar is getting open by default. How to disable it using OperaOptions in selenium?
View ArticleChanging test name in python unittest using selenium
I have a question. Is it possible to change the name test in output, using python unittests?For example, my test:from selenium import webdriver import unittest from data.readData import Data from...
View ArticleHow to parametrize test data while running appium automation scripts on...
I am currently working on a mobile automation framework using Appium, java, and testng. The tests are supposed to run paralleled across multiple devices/emulators. But I want to send different test...
View ArticleCan find element within an iframe using Firefox but not Chrome
So I'm trying to write a test for a webpage which has some elements within an iframe. I've been able to successfully run the test using webdriver.Firefox() without any problems but if I switch it over...
View ArticleContinue for loop with while loop inside after exception?
I'm trying to use Selenium to scrape a bunch of websites, that are needed to be scrolled down and clicked on a button. Each url has same structure, but has different number of click times.My code:for...
View ArticleHow to scroll the specific div using Selenium Webdriver
I want to scroll the menu bar by using selenium java.https://i.stack.imgur.com/ZqWTp.png
View ArticleHow to extract video tag which is visible only after clicking play button?
I am trying to extract the video tag from the anime site kickassanime. I am using selenium to download the video by extracting the url from the video tag. But i am unable to do so because it is only...
View ArticleWhen running my Selenium script - ChromeDriver gets stuck at "data:," and is...
File "C:\Program Files (x86)\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Program Files...
View ArticlePrint the Reporter logs of @BeforeMethod and @AfterMethod in emailable report...
I am running some cleanup code in the aftermethod of testng. Everything is smooth but the logs are not printed on the emailable report. But it prints on the console. Is there is any way to print the...
View Articleinstalling geckodriver only using terminal
I am using a headless ubuntu, and want to install latest geckodriver. So I must install by entering a command line. my ubuntu is 14.04 trusty.But, I don't know the command to install geckodriver....
View ArticleUnable to find the chromedriver executable
Unable to find the chromedriver executable. Please download the server from http://code.google.com/p/chromedriver/downloads/list and place it somewhere on your PATH. More info at...
View ArticleHow to validate dynamic content of web application which are database driven...
I am new to selenium. I want to validate the dynamic content of a web application. All the content is coming from database on the basis of some business logic. I have done with google search but got no...
View ArticleHow to use only Socks Proxy in Firefox using Selenium?
i'm writing tests in selenium and tried to use only socks for proxy. Here is the code.from selenium import webdriver proxy = "localhost" port = "5900" profile = webdriver.FirefoxProfile()...
View ArticlePython Selenium WebDriver drag-and-drop
I cannot get drag-and drop working with the Python WebDriver bindings. I am working with Google Chrome and Firefox on Mac OS X. There is a thread here where someone had a similar problem.I have tried...
View Article