I am from Indonesia, thank you for the knowledge you shared, I often watch your videos. I am looking forward to the next video in this series. Thank you Raghav.
@RaghavPal Жыл бұрын
Thanks for watching
@Sa-oz4tr Жыл бұрын
Really Helpful, You have explained nicely, watching each video one by one, Thank you,
@RaghavPal Жыл бұрын
You are most welcome
@kapilpawankar266210 ай бұрын
very nice presentation. very helpful.Thank u. keep doing the good work.
@RaghavPal10 ай бұрын
You are most welcome Kapil
@firdaaviola Жыл бұрын
i like your video, because its clear to explain step by step, thankyou for make this video, very helpful 👍
@RaghavPal Жыл бұрын
Most welcome Firda
@MdNajmulIslamNajim Жыл бұрын
I am looking forward to the next video of series, please share. Thanks a lot Mr. Raghav
@RaghavPal Жыл бұрын
Very soon Najmul
@MdNajmulIslamNajim Жыл бұрын
@@RaghavPal , Thank You. You are great.
@arunmarkrajan66263 ай бұрын
Thank You Sir
@RaghavPal3 ай бұрын
Most welcome Arun
@flirtuall787 ай бұрын
Thanks for sharing.
@RaghavPal7 ай бұрын
Most welcome Harsh
@onelephantindia Жыл бұрын
hello. I think this explanation is clear than other videos. Thank you! I have a quiestion. if I want to know a final report once this script is ran, how can I make a checklist or take a look every step executed in slow motion. Could you please give me a hint?
@RaghavPal Жыл бұрын
Not sure, Will need to check on that
@leandrozarate5547 Жыл бұрын
try debugging tool, very useful while coding
@mr.s.h.818 Жыл бұрын
That's clear, but the issue is how to generate a report? In other words, can we get a report of our test saved in assigned directory??? Please advise!!
@RaghavPal Жыл бұрын
Yes, we can, I will explain this in next video where we will learn how to implement Pytest
@coddude3284 Жыл бұрын
amazing man that so helpful, i knew that extension, but the code export not at all !
@RaghavPal Жыл бұрын
Great to know this helped
@Programmingworld-g9m6 ай бұрын
Can we use the driver as a veritable and other thing like x or y
@RaghavPal6 ай бұрын
Yes, in Selenium, you can assign the `driver` object to a variable with a different name. This is a common practice in programming, known as variable assignment or aliasing. For example, in Java: ```java WebDriver x = new ChromeDriver(); // Assign the ChromeDriver instance to a variable named x ``` Or in Python: ```python x = webdriver.Chrome() # Assign the ChromeDriver instance to a variable named x ``` However, keep in mind that using a different variable name may make your code less readable, especially for others who are familiar with the conventional `driver` variable name. --
@mowtown75 Жыл бұрын
Thanks Great Vid, I found that the page would run when using the S_IDE but when I exported to Python it would not launch Chrome. I have been able to do basic website launches before using chrome.
@RaghavPal Жыл бұрын
Tibby Can replace statements for opening chrome browser. Can check more online examples for help
@meetprabhatsharma10 ай бұрын
sir can you show one example of send seys , for e.g. i need to press esc button, but capture this action in selenium record script
@RaghavPal10 ай бұрын
Prabhat In Selenium, you can use the `send_keys()` method to simulate keyboard input. Let's create an example where we press the Escape (Esc) button using Selenium. 1. First, make sure you have the Selenium WebDriver installed. If not, you can install it using `pip install selenium`. 2. Next, create a Selenium script. Here's an example using Python: ```python from selenium import webdriver from selenium.webdriver.common.keys import Keys # Initialize the WebDriver (you can choose a different browser driver) driver = webdriver.Chrome() # You can use Firefox, Edge, etc. # Open a webpage (replace the URL with your desired page) driver.get("www.example.com") # Find an element (e.g., an input field or button) where you want to send keys element = driver.find_element_by_id("your-element-id") # Replace with the actual ID # Simulate pressing the Escape key element.send_keys(Keys.ESCAPE) # Perform any other actions you need (e.g., clicking buttons, filling forms, etc.) # Close the browser driver.quit() ``` In this example: - We open the webpage at `www.example.com`. - We locate an element by its ID (you should replace `"your-element-id"` with the actual ID of the element you want to interact with). - We simulate pressing the Escape key using `element.send_keys(Keys.ESCAPE)`. .
@saranyababu1359 Жыл бұрын
How to check whether element is visible in view port ? Element is not visible in view port , as its available in DOM , getting true for isDisplayed(). How to do it in selenium java
@RaghavPal Жыл бұрын
Hi Saranya Sure, here are the steps on how to check whether an element is visible in the viewport in Selenium Java: 1. Get the element's location and dimensions. 2. Get the browser's dimensions. 3. Compare the element's location and dimensions to the browser's dimensions. 4. If the element is not within the browser's dimensions, then it is not visible in the viewport. Here is an example code: ```java import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; public class VisibilityInViewport { public static void main(String[] args) { WebDriver driver = new ChromeDriver(); driver.get("www.example.com"); WebElement element = driver.findElement(By.id("my-element")); Point elementLocation = element.getLocation(); Dimension elementDimensions = element.getSize(); Dimension browserDimensions = driver.manage().window().getSize(); boolean isVisibleInViewport = elementLocation.x >= 0 && elementLocation.x < browserDimensions.width && elementLocation.y >= 0 && elementLocation.y < browserDimensions.height; System.out.println("Is element visible in viewport? " + isVisibleInViewport); driver.quit(); } } ``` This code will first get the element's location and dimensions using the `getLocation()` and `getSize()` methods. Then, it will get the browser's dimensions using the `manage().window().getSize()` method. Finally, it will compare the element's location and dimensions to the browser's dimensions using the `&&` operator. If the element is not within the browser's dimensions, then it is not visible in the viewport. The `isVisibleInViewport` variable will be set to `true` if the element is visible in the viewport and `false` if it is not. The `System.out.println()` statement will print the value of the `isVisibleInViewport` variable to the console. I hope this helps
@Freshmore-Fact Жыл бұрын
Total how many videos are going to be uploaded in this series ?
@RaghavPal Жыл бұрын
I am still in the process of making these videos, so don't have an exact count Syed
@Freshmore-Fact Жыл бұрын
@@RaghavPal oh okay.
@krishna_raj9331 Жыл бұрын
Hello Sir, I don't think recordings are used now a days in test automation. Could you please directly start with the coding part.
@RaghavPal Жыл бұрын
Hi Krishna This can be useful in getting element locators, scripts etc. I will soon start coding part
@ajjaiahkc8795 Жыл бұрын
Unable to complete code export,it showes: "Test 'Test1' has a problem: Incomplete command 'type'. Missing expected value argument". pls help me...
@RaghavPal Жыл бұрын
There are a few things you can try to fix the error "Test 'Test1' has a problem: Incomplete command 'type'. Missing expected value argument" when exporting your recorded script in Selenium Python from Selenium IDE: * **Make sure that the element you are trying to type into is visible and enabled.** If the element is not visible or enabled, Selenium IDE will not be able to generate the Python code correctly. * **Make sure that the value argument for the `type` command is present.** The `type` command takes two arguments: the element to type into and the value to type. For example, the following command would type the value "Hello, world!" into the element with the ID `my-element`: ``` type("my-element", "Hello, world!") ``` If you are missing the value argument for the `type` command, Selenium IDE will not be able to generate the Python code correctly. * **Try exporting your code to Python again.** Sometimes, this can fix minor problems with the code export process. If you are still getting the error, you can try the following: * **Open the Selenium IDE console.** You can do this by clicking the **Console** tab in the Selenium IDE window. * **Try executing the `type` command manually.** To do this, type the following command into the console: ``` type("my-element", "Hello, world!") ``` Replace `my-element` with the ID of the element you are trying to type into. * **If the `type` command fails manually, then there is a problem with the element or the value argument.** Make sure that the element is visible and enabled, and make sure that the value argument is present. * **If the `type` command succeeds manually, then there is a problem with the way Selenium IDE is generating the Python code.** You can report the problem to the Selenium IDE team on GitHub. I hope this helps
@lodecesa Жыл бұрын
Recording a test with Selenium IDE and then exporting it to Python code is not useful because running the exported Python script generates errors due to page loading times. The code uses find_element(By.XPATH, xpath_string) when it would be more useful to replace it with wait.until(element_locator). Therefore, the exported code becomes unusable when navigating between pages. Do you have a solution for this issue?
@RaghavPal Жыл бұрын
It is generally recommended to take help from recorded script in terms or actions, object locators, functions etc Will have to make changes and do updates as per requirement
@erlanggasamuderakencana9827 Жыл бұрын
how can we play back with vs code?
@RaghavPal Жыл бұрын
In VS Code you can add extensions for running the code directly or you can always do from terminal with commands