One thing I'm sure of is that in the Page Object Model, DOM objects are defined in a class file specific to a certain page in the format shown below: @FindBy(xpath = "//*[@id='page_content_inner']/div/a[1]/div") private WebElement setupBtn; ...
I am attempting to use Python to click the Replay button on Spotify's Web Player, but I keep encountering an error. How can I go about clicking buttons in a web player? replay = driver.find_element_by_xpath("""/html/body/div[2]/div/div[4]/di ...
Our C#/ASP .Net web application undergoes the build and deployment process by our server, Jenkins. One crucial step in this process is ensuring that all automated tests, including functional tests using Selenium 2 WebDriver and NUnit, pass before deploymen ...
I have set up a Maven project using Selenium WebDriver and integrated TestNG. However, when I validate my Maven project, an error message is displayed stating "Attribute "parallel" with value "none" must have a value from the list "false methods tests clas ...
My objective is to compile a list of the names of all newly posted items on within a 24-hour period. After some research, I've discovered that Selenium is the ideal tool for this task as the website I am scraping is dynamic and loads more content as the ...
I'm struggling to figure out how to extract only the first 3 <td> elements from each row in a table using Selenium and web driver. For example, I need to get 'Vanessa 17 Sociology', 'Mike 18 Maths' and 'Sam 18 English' <table id= "table3"> ...
I am having trouble generating the TestNG runner file from my POM file. I have double-checked all the configurations and they seem to be correct. Can someone please help me with the correct configuration? <build> <pluginManagement> ...
The code snippet above is intended to terminate the program when an exception occurs by calling driver.quit(). However, despite this, the program continues to run. What did I miss here? try: driver.refresh() wait.until(ec.visibility_of_element_lo ...
I am working on a code snippet to check for emails after a form submission. Sometimes, there is a delay in receiving the email. I have implemented a thread.sleep for 20 seconds before calling the email method, but it seems insufficient. Is there any way ...
I've been searching for a solution but haven't had any luck. It seems that Webdriver is having trouble locating a specific element. Here's the HTML code: <div id="cboxOverlay" style="opacity: 1; cursor: auto; display: none;"></div> ...
As a newcomer to Python and Selenium, my understanding of both is limited at this point. My Goal: I want to continuously monitor a Telegram channel for new messages without having to log in each time by using custom flags on the web version. Firstly, I i ...
Can someone help me extract the value of h1 as a string using selenium? Check out the HTML javascript snippet below- <script type="text/javascript"> $(window).load(function() { var $windowHeight = $(window).height() -12; $(" ...
My goal is to automatically scroll down to the bottom of the page and then perform a specific action. With the help of uiautomator, I was able to retrieve the following information: index=2, resource-id=com.manoramaonline.arogyam:id/pager,class=android.sup ...
I have been attempting to capture a screenshot of a webpage only once all images are completely loaded on it. Even though I searched for a solution on stack overflow, none of the suggestions have worked for me so far. The closest one I found is mentioned ...
Having trouble pasting text into a textbox on MACOS? Trying to use the code snippet below, but Control + v and Command + v shortcuts are not working. It seems like this is a known issue, but unsure if it has been resolved yet. https://github.com/seleniumhq ...
I need to retrieve all the available options from a dropdown menu HTML Code: <select class="custom-select ng-pristine ng-untouched ng-valid ng-not-empty" ng-model="Air.Class" aria-invalid="false"> <option value="0">All</option> ...
My goal is to create a loop that attempts to click on an element until it is found. If this process exceeds a 15-second limit, a warning message will be displayed. The current issue is that the loop does not respect the 15-second limit and gets stuck in a ...
Having trouble clicking on a button after entering the email address. driver = new ChromeDriver(); driver.get("http://in.rediff.com/"); driver.findElement(By.xpath(".//*[@id='homewrapper']/div[5]/a[3]/div/u")).click(); dr ...
Looking to implement a proxy switcher in Selenium using Python. Currently, I have code that adds a proxy through an extension but now I need to modify it to switch proxies multiple times. The goal is to create a "Proxy Switcher" extension. manifest_json ...
Issue Encountered - Upon observation, I noticed that the tests are executing sequentially within a single session of FireFox browser on one node. Desired Outcome - In the specific scenario of the class "IntegrationTest" containing 20 test methods(@Test), ...
Initially, I need to hover over the element to trigger a dropdown and then click on a specific link. This functionality works smoothly in Firefox and Chrome but encounters an issue in Internet Explorer. Below is the snippet of code being used: WebElement ...
I am currently working on testing my program across various browser versions. To begin, I opted to use ChromeDriver by implementing the following code: using OpenQA.Selenium.Chrome; ChromeOptions Options = new ChromeOptions(); Options.PlatformName = " ...
I've been struggling to adapt my JavaScript script for use with Selenium (also in JavaScript). Despite numerous attempts, I haven't been able to find a solution. I've attached an image to better explain my question await chromeDriver.findElement(By.id(&quo ...
In my current project, I am working with Selenium 4.8 in .NET 6 and I have encountered a specific html structure that needs to be parsed. <ul class="search-results"> <li> <a href=//to somewhere> <span class=" ...
In the past, I was familiar with Selenium and WebDriver, which allowed for manipulating webpage elements like Textfields and Buttons through code. However, I'm uncertain if these tools are still available or relevant today. For instance, imagine I ha ...
<a class="lnk" href="http://www.google.com">Go Google</a> Whenever this link is clicked, the 'loading' CSS class will be added. How can we verify this before actually going to google.com? $element = $driver->findElement(WebDriverBy::classN ...
In my current project, I am dealing with a page that contains several fields that need to be edited using WebSamplerDriver. The challenge I face is that the id values of these fields are not consistent and tend to change periodically. This makes it difficu ...
https://i.stack.imgur.com/Eg9jc.pngAn application has been developed in Salesforce with a dropdown box containing items built using the <li> tag. However, I am unsure how to select a specific item from this design. <div id="Department__cformContr ...
I am attempting to utilize wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.Id("logonIdentifier"))); However, I am encountering an error stating 'Could not load file or assembly 'SeleniumExtras.WaitHelpers'. My projec ...
When running my protractor test, I encountered an issue with the following statement: await element(by.model('publishCtrl.isPublishedInAllRegions')).click(); The test failed and returned an error message stating "ElementNotVisibleError: element not visib ...
Below is a snippet of HTML code. In this code, with the help of Java Selenium, I am trying to automate clicking on the logout option to end the session. The process involves clicking on a dropdown button which reveals the logout option, and then clicking o ...
Hello, I am trying to upload a file during my test using Geb. The instructions in the Geb-book (http://www.gebish.org/manual/0.9.0-RC-1/navigator.html#file_upload) are not working for me. My HTML code includes a file input field: <input id="bla-bl-bla ...
enter code here: public static void main(String[] args) throws ClassNotFoundException, SQLException, InterruptedException { System.setProperty("webdriver.chrome.driver", "C:\\Users\\admin\\Documents\\selenium ...
For my current project working with Python 3.6.3, bs4, and Selenium 3.8 on Win10, I am faced with the task of scraping pages that contain dynamic content. Specifically, I need to extract numbers and text from websites like . It seems using requests+beautif ...
After creating some phpunit selenium code for file upload, I noticed it functions properly on my local setup. The file path specified is: $filePath = getcwd(). "/Images/test_Image1.png" However, when running the same code on Jenkins (using SauceLabs), ...
While utilizing Selenium to access a DOM element, I encountered some confusion with double dots in xpath. To clarify: .. (double dots) - this will select the parent of the current node. I also came across an article that elaborates on "Using doubl ...
Trying to run a simple test where both Firefox browser and Chrome browser open simultaneously and navigate to the same URL, but encountering an issue where my @Test method is being ignored. However, the @BeforeClass works as expected. Appreciate any help o ...
Is there a way to capture the entire web page, including images and CSS files, using Ruby selenium-webdriver? I attempted the code below but it only retrieves the HTML file. driver = Selenium::WebDriver.for(:firefox) driver.get(URL_of_page_to_save) file ...
Hey there, I'm currently practicing my skills with Selenium on a practice forum. If you're interested in checking it out, here's the link: click here When you visit the page and inspect the dropdown menu for state and city, you'll notice that it only cons ...
Due to compatibility reasons, I have opted to use Chrome version 55.0.2883.75 with Chromedriver v. 2.26. To download the older version of Chrome, I visited , and for Chromedriver 2.26, I got it from https://chromedriver.storage.googleapis.com/index.html?pa ...
I am trying to retrieve the names of requests and transactions from my results. My goal is to display the transaction name, request name, iteration count, and the user number passed in my code using the Selenium Webdriver Sampler. Can you please share some ...
Here is the HTML code that I am working with: <div id="infos"> NAME COMANY <br> 35 South , Wimbledon <br>SA51 8RR London <br>***United Kingdom Phone: +##-##-####.#### Fax: +##-##-###.####*** <br> & ...
from selenium import webdriver PATH = "C:\Program Files\Driver\chromedriver-win32\chromedriver-win32" driver = webdriver.Chrome(PATH) driver.get("https://example.com") however, there is an occurrence of error " ...
After running the provided code snippet, it successfully works in a standalone project. However, I am interested in making modifications to replace the variable "sample_text" with an output that is displayed in the terminal instead of being hardcoded int ...
As I work with Selenium Webdriver in JAVA, I am attempting to automate a task that involves opening a new tab to execute some operations and then returning to the previous tab (Father). However, this process results in losing the session and encountering ...
Currently, I am studying Selenium and while attempting to run the program below, I encountered an error stating "Cannot find class in classpath:practiseAutomation". The code is as follows: public class practiseAutomation { public WebDriver driver; String ...
I would greatly appreciate your assistance in clarifying the concepts of ExpectedConditions.refresh and ExpectedConditions.stalenessOf. ...
My approach to retrieving the browser type (on which I want to run Selenium tests) from testng.xml involves the following code: public class TestClass { @BeforeClass public void beforeClass(ITestContext context) { String browser = con ...
Here's a snippet of the code I'm working on: public void someTest() { String x = "/html/body/div/div["; String y = "]/a"; for (int i = 1; i < 5; i++){ String links = x + i + y; driver.findElement(By.xpat ...
Trying to fetch base64 captcha images using Python Selenium has been a challenge. The issue I'm encountering is that I can only access the HTML right before the images are loaded. Here are the steps I've taken: # importing necessary packages f ...
My current project involves creating Selenium tests for a particular website. Essentially, when a user navigates to the site, a CMS injects some dynamic elements (HTML + JS) onto the page. Everything works fine when running tests on the Firefox driver. H ...
When there is no loading symbol displayed on the screen <div id="divWait" style="cursor: wait; position: absolute; left: 0%; top: 0%; background: transparent; padding: 3px; width: 100%; height: 100%; display: none;"> However, when the loading proce ...
I'm having trouble clicking on the arrow of an ExtJS split button using Selenium WebDriver. I've attempted it multiple times without success. Below is a link where you can find the split button. I just need Selenium to click on the arrow so that the menu i ...
When designing my web application, I adhere to the Page object model by utilizing a Base class that contains all common and reusable methods, as well as separate pages for each page of the application. Currently, I am faced with the task of creating a met ...
While I have experience using selenium, I have not had the opportunity to utilize WebDriverWait until now. I am currently facing a situation where I need to click on a Back button, which appears to be available immediately but may not be accessible for a b ...
Is there an equivalent to Capybara's (RoR) default_wait_time for the Intern? setPageLoadTimeout and setFindTimeout don't seem to accomplish anything. this.timeout = 60000 seems to give an entire test 60 seconds, but I want all steps to have a default wai ...
In my test suite, I have a specific scenario that requires the following steps: Click on a button. Upload an image from a specified directory. Wait for 15 seconds Repeat Steps 1-3 for all images in the specified directory. I need to figure out how to up ...
I am currently engaged in Selenium Automation Testing with Jenkins. After successfully setting up Jenkins on my computer, I have been able to run tests as a Maven project without any issues. The Jenkins setup is on a Ubuntu server that operates without a ...
Can you review my xpath code below? By.xpath(".//div[contains(@class, 'foo123') and contains(text(), 'foo bar')]") I am attempting to locate the specified HTML element: <div class="foo123">foo bar</div> Do you see any er ...
Snippet: <select class="select2 ddl visible select2-hidden-accessible" data-allow-clear="true" id="Step1Model_CampaignAdditionalDataTypeId" multiple="" name="Step1Model.CampaignAdditionalDataTypeId" tabindex="-1" aria-hidden="true"> <option value ...
Some may argue that this question is duplicated, but I believe it's not. I have installed an app on the emulator and am currently running the following code to check if the app is available. If the app is indeed available, it returns true. See the co ...
Using Chrome Driver, I am able to initialize a new browser session with a specific user data directory. This ensures that all cookies, bookmarks, and cache are stored in a separate profile folder. If the folder does not exist, it will create one; if it doe ...
Encountering an issue with a specific part of my code: webDriver.manage().window().setSize(new Dimension(width,height)); TimeUnit.MILLISECONDS.sleep(100); webDriver.executeScript("window.scrollTo(0,document.body.scrollHeight);"); The challenge lies in en ...
After experimenting with Selenium and attempting to automate the checkout process, I've encountered a stumbling block in the final part of my code. Despite numerous configurations of 'sleeps' and 'implicit_waits', I keep receiving ...
Exploring Selenium Web Driver using Python with Chrome driver has been an interesting journey for me. I discovered that while I was able to make it click a button with English text, it failed to do so when the text was in Hebrew. To illustrate this issue, ...
After receiving assistance from a member on this platform, I managed to get this code to function correctly: boolean clickMore = true; while(clickMore == true) { List<WebElement> button1 = driver.findElements(By ...
I have implemented my implicit wait as shown in the code snippet below: //import import org.openqa.selenium.WebDriver; //driver declaration public static WebDriver driver = null; //implicit wait driver.manage().timeouts().implicitlyWait(30, TimeUnit.SE ...
For my web automation project, I am utilizing Robocorp along with the Selenium library. Everything runs smoothly until I reach a particular page where I need to click on an icon labeled SQL. I specifically require the <a> element with the @href att ...
Initially, I attempted to use driver.switchTo().frame("framename"); but unfortunately it did not successfully switch to the desired frame. driver.switchTo().frame("xxx");/// Throws an {"status":7,"value":{"error ...
Is there a way to utilize driver.find_element_by_id method in Selenium with Python without explicitly defining the Chrome WebDriver? import time from selenium.webdriver.common.keys import Keys from selenium import webdriver from selenium import selenium ...
I am facing a challenge with Selenium where I need to scroll to the last element on a list within a modal window. Despite trying various methods, such as: // 1. driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL, Keys.END); // 2. j ...
Once I've dealt with the notification, my goal is to click on the create button, select an image, and then click the next button. Can someone assist me in uploading photos to Instagram? Here's my code: `def upload_images(username, password, image_folder): ...
Here is a div with a popup overlay: <div class="tutorial-button tutorial-button-ok tt-close">Later</div> Check out the source code for this element: <a class="match-button match-button-close" href="javascript:void(0);" onclick="matchingLa ...
Currently, I am utilizing the python3 unittest library in conjunction with selenium webdriver for my project. Despite having an existing question within my application, I am encountering a problem when attempting to add a new question. Rather than insertin ...
When inputting content in this editor, everything is placed within the <p> tag. However, the system does not recognize /html/body/p, so I have tried using /html/body or switching to the active element, but neither approach seems to work. driver.sw ...