'Can i find certain text inside javascript code using selenium
For example the website have this code
<html>
<head> Product Display </head>
<body>
<b> Product </b>
<script>
document.getElementById("iframe").src = "productid.php?code=75021&productno=111222");
</script>
<iframe id="iframe"></iframe>
</html>
What I wanted is the code "75021", I tried searching anywhere but can't find any solution. The product code is unique and changing every time, I guess I need REGEX too ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
