headless chrome: prevent sites to know whether their window is focused or not
Is there a way to prevent sites to know if they are visible or not?Perhaps a command line flag? I checked here but I could not find anything suitable...
View ArticleEnabling hotspot VPN with selenium
I'm beginner to selenium, trying to open a project based website prohibited in my region , i can simply request that by a web browser using proxy extension(hotspot shield), in case of selenium its not...
View ArticleHow can I ask the Selenium-WebDriver to wait for few seconds in Java?
I'm working on a Java Selenium-WebDriver. I added driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); andWebElement textbox = driver.findElement(By.id("textbox")); because my Applications...
View ArticleHow to list installed packages and environment variables in pytest-html report?
I have a framework with selenium + python tests and I need to use pytest-html to get and show the info about installed packages and environment variables in the generated report. My only thought was to...
View ArticleJava Selenium open TOR browser
I try to open the Tor browser by Java + Selenium + CheckoDriver + Tor browser. The code below open the Tor browser but with the "Tor failed to start" error. Maybe someone faced with this problem or...
View Articleautocomplete not working in selenium webdriver rails
I would like to select the first element of autocomplete in selenium testing but it is giving me the error "unable to find the css" below is my...
View ArticleRun TOR browser with Selenium WebDriver
Im currently trying to execute TOR 6.0.4 with Selenium WebDriver (JAVA) 2.53 and Firefox 43.0. I've followed the instructions from this post Using Selenium WebDriver with Tor but Im getting an error...
View ArticleSelenium webdriver get all the data attributes of an element
Using Selenium webdriver I have the following element<div data-1223="some data" data-209329="some data" data-dog="some value"> Is there a way to get all the data- attributes of the element? For a...
View ArticleCan pick up the elements using python selenium binding from a website for...
This is the website "https://agta.org/directory/", no matter what i tried i was not able to click the search button, i gave a delay clicked the button manually hoping for the script to pick up elements...
View ArticleSelenium driver not able to load all element for some page
I been trying to load https://www.sc.com/sg/atm-branch-locator/ page through selenium + chromedriver + java but it's not load properly in test browser.Normally its load properly in browser. public...
View ArticleBest way to include UI tests in build pipeline
In build pipeline, currently we've unit tests but also looking to include UI tests in it. Is including Selenium tests good approach? Or is there any other better way which will help stability, time...
View ArticleHow to type like a human via Actionchains send_keys
I know how to type slowly with the next code:elem = driver.find_element_by_id("mainCommentForm") text = "To type text here" for character in text: elem.send_keys(character)...
View ArticleHow to control the runs in TDD using data provide-selenium,testNG
I have a testdata as below.When I use data provider, my test is running 4 times with all the 4 different inpuit set mentioned below. But I want to control the test set need to pick. How can I control...
View ArticleWeb Scraping Linkedin Profiles: Cannot pick all links
Following is the code being used:linkedin_urls = driver.find_elements_by_class_name('r') sub = 'linkedin.com' for linkedin_url in linkedin_urls: tag = linkedin_url.find_element_by_tag_name('a') URL =...
View Articleselenium clicking a href button
I am really new to selenium. Currently, I am trying to use both selenium and beautifulsoup to do some webcrawling. The website that I am webcrawling on is...
View ArticlePython Selenium mouse move action chain not working
driver = webdriver.Chrome() driver.get('https://www.wikipedia.org/') time.sleep(2) actions = ActionChains(driver) actions.move_by_offset(500, 500).perform() move_to_element,...
View ArticleCan I use selenium on an already open browser? [duplicate]
This question already has an answer here:Can Selenium interact with an existing browser session? 11 answersHow can I reconnect to the browser opened by webdriver with selenium? 3 answersHow can I use...
View ArticleMicrosoft Web Driver has stopped working. A problem cause the program to stop...
How do I run Microsoft Edge in Selenium. Each time I run a test, the Edge browser opens but does not load any URL. It then displays a small dialog box with the text:Microsoft Web Driver has stopped...
View ArticleSelenium Chromedriver (Laravel Dusk)
I have a system to check my site’s with browser, but it uses a lot of CPU and memory. I am trying to debug and optimize the process. But I have this error. Who knows how to fix and optimize this?
View ArticleIf double slash (//) is used 2 times in XPath, what does it mean?
What does a double-slash used twice in an XPath selector mean? Suppose I'm using a path like://div[@id='add']//span[@id=addone']
View Article